Versions in this module Expand all Collapse all v0 v0.6.0 May 19, 2021 Changes in this version + type Cache struct + MaxEntries int + OnEvicted func(key string, value interface{}) + func New(maxEntries int) *Cache + func (c *Cache) Add(key string, value interface{}) + func (c *Cache) Get(key string) (value interface{}, ok bool) + func (c *Cache) Len() int + func (c *Cache) Remove(key string) bool + func (c *Cache) RemoveOldest()