Versions in this module Expand all Collapse all v0 v0.18.0 Jul 1, 2021 v0.17.0 Jun 30, 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{}) + func (c *Cache) AddKey(key Key) + func (c *Cache) Clear() + func (c *Cache) Contains(key interface{}) bool + func (c *Cache) Empty() bool + func (c *Cache) Get(key Key) interface{} + func (c *Cache) GetValues() []interface{} + func (c *Cache) Remove(key Key) + func (c *Cache) Size() int + type Key interface