Versions in this module Expand all Collapse all v1 v1.0.0 Apr 11, 2024 Changes in this version + type Cache struct + func New(size int) *Cache + func NewWithEvictionFunc(size int, f EvictionFunc) *Cache + func (c *Cache) Add(key Key, value interface{}) + func (c *Cache) Clear() + func (c *Cache) Get(key Key) (value interface{}, ok bool) + func (c *Cache) Len() int + func (c *Cache) Remove(key Key) + func (c *Cache) RemoveOldest() + type EvictionFunc = func(key Key, value interface{}) + type Key = groupcache.Key