Versions in this module Expand all Collapse all v4 v4.0.0 Jan 21, 2021 Changes in this version + type Cache struct + MaxEntries int + OnEvicted func(key Key, value interface{}) + func New(maxEntries int) *Cache + func (c *Cache) Add(key Key, value interface{}, expire time.Time) + 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 Key interface Other modules containing this package github.com/chatlio/groupcache/v3