Versions in this module Expand all Collapse all v0 v0.14.2 Jul 10, 2026 v0.14.1 Jul 7, 2026 Changes in this version + const DefaultBufferItems + const DefaultMaxCost + const DefaultNumCounters + const ZeroCost + func NewDefaultRistrettoCache[T any]() (*ristrettoCache[T], error) + func NewRistrettoCacheWithSize[T any](maxCost int64) (*ristrettoCache[T], error) + func NewRistrettoCache[T any](config *ristretto.Config[string, T]) (*ristrettoCache[T], error) + type Config = ristretto.Config[K, V] + type NoCache struct + func NewNoCache[T any]() *NoCache[T] + func (n *NoCache[T]) Add(key string, value T) + func (n *NoCache[T]) Delete(key string) + func (n *NoCache[T]) Get(key string) (T, bool) + func (n *NoCache[T]) GetOrLoad(key string, loader func() (T, error)) (T, bool, error)