Versions in this module Expand all Collapse all v2 v2.0.0 Sep 3, 2022 Changes in this version + type Cache interface + DeleteExpired func() + Get func(key K) (V, bool) + Invalidate func(key K) + InvalidateFn func(fn func(key K) bool) + Keys func() []K + Len func() int + Peek func(key K) (V, bool) + Purge func() + RemoveOldest func() + Set func(key K, value V, ttl time.Duration) + Stat func() Stats + func NewCache() Cache[K, V] + type Stats struct + Added int + Evicted int + Hits int + Misses int Other modules containing this package github.com/go-pkgz/expirable-cache github.com/go-pkgz/expirable-cache/v3