Versions in this module Expand all Collapse all v0 v0.20.0 Apr 14, 2026 v0.19.0 Apr 13, 2026 Changes in this version + var ErrExpired = errors.New("cache entry expired") + type ValidatingCache struct + func New[K comparable, V any](capacity int, load func(K) (V, error), check func(K, V) error, ...) *ValidatingCache[K, V] + func (c *ValidatingCache[K, V]) Get(key K) (V, bool) + func (c *ValidatingCache[K, V]) Len() int + func (c *ValidatingCache[K, V]) Set(key K, value V)