Versions in this module Expand all Collapse all v0 v0.7.0 Dec 4, 2025 Changes in this version + const ZeroCost + func NewDefaultRistrettoCache[T any]() (*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)