Versions in this module Expand all Collapse all v1 v1.5.0 Jan 6, 2022 Changes in this version + type Cache struct + C chan interface{} + func New(name string, expired time.Duration, update func(interface{}) (*Item, bool)) *Cache + func (c *Cache) LoadWithUpdate(key interface{}) (*Item, bool) + func (c *Cache) Name() string + func (c *Cache) Store(key interface{}, value *Item) + type Item struct + Object interface{} + func (i *Item) IsExpired() bool