Versions in this module Expand all Collapse all v0 v0.0.1 Oct 14, 2023 Changes in this version + type Cache struct + OnEvicted func(key string, value Value) + func New(maxBytes int64, onEvicted func(string, Value)) *Cache + func (c *Cache) Add(key string, value Value) + func (c *Cache) Get(key string) (value Value, ok bool) + func (c *Cache) Len() int + func (c *Cache) RemoveOldest() + type Value interface + Len func() int