Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ZeroCost with this ristretto uses the Cost function defined in its configuration
ZeroCost = 0
)
Variables ¶
This section is empty.
Functions ¶
func NewRistrettoCache ¶
NewRistrettoCache creates and returns a new ristretto-based cache implementation.
Types ¶
type Config ¶
type Config[K ristretto.Key, V any] = ristretto.Config[K, V]
Config is a shortcut for the ristretto Configuration.
Click to show internal directories.
Click to hide internal directories.