Versions in this module Expand all Collapse all v0 v0.0.2 Nov 6, 2022 v0.0.1 Oct 26, 2022 Changes in this version + type Cache struct + func NewLRUCache(maxEntries int) *Cache + func NewLRUWithTTLCache(maxEntries int, expiry time.Duration) *Cache + func NewTTLCache(maxEntries int, expiry time.Duration, updateAgeOnGet bool) *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) Remove(key Key) + func (c *Cache) Size() int + type CacheCore interface + type Key interface