cache

package
v0.0.0-...-0f28e9b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ristretto

type Ristretto struct {
	// contains filtered or unexported fields
}

func NewRistretto

func NewRistretto(maxCost int64) *Ristretto

func (*Ristretto) Del

func (x *Ristretto) Del(k string) error

func (*Ristretto) Get

func (x *Ristretto) Get(k string) (interface{}, error)

func (*Ristretto) Set

func (x *Ristretto) Set(k string, v interface{}) error

func (*Ristretto) SetWithExpire

func (x *Ristretto) SetWithExpire(k string, v interface{}, t time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL