Versions in this module Expand all Collapse all v1 v1.0.1 Aug 15, 2024 Changes in this version + type Cache struct + C chan interface{} + Map sync.Map + func New(name string, expired time.Duration, update Update) *Cache + func (c *Cache) Load(key interface{}) (interface{}, bool) + func (c *Cache) LoadWithUpdate(key interface{}) (interface{}, bool) + func (c *Cache) LoadWithUpdateSync(key interface{}) (interface{}, bool) + func (c *Cache) Name() string + func (c *Cache) Store(key interface{}, value interface{}) + type Update func(interface{}) (interface{}, bool)