Versions in this module Expand all Collapse all v1 v1.0.0 Jan 20, 2026 Changes in this version + type Cache struct + EvictionChannel chan<- Eviction[K, V] + LowerBound int + UpperBound int + func New[K comparable, V any](cap int) *Cache[K, V] + func (c *Cache[K, V]) Evict(count int) int + func (c *Cache[K, V]) Get(key K) *V + func (c *Cache[K, V]) GetFrequency(key K) int + func (c *Cache[K, V]) Has(key K) bool + func (c *Cache[K, V]) Keys() []K + func (c *Cache[K, V]) Len() int + func (c *Cache[K, V]) Set(key K, value V) + type Eviction struct + Key K + Value V