Versions in this module Expand all Collapse all v1 v1.0.4 Apr 29, 2022 Changes in this version + type Cache struct + Delay time.Duration + Delete DeleteFunc + func (c *Cache) Load(key interface{}) (*Reference, bool) + func (c *Cache) LoadOrCreate(key interface{}, f CreateFunc) (*Reference, error) + func (c *Cache) LoadOrStore(key interface{}, value interface{}) (*Reference, bool) + func (c *Cache) Range(f func(key interface{}, r *Reference) bool) + type CreateFunc func() (value interface{}, err error) + type DeleteFunc func(value interface{}) + type Reference struct + func (r *Reference) RefCount() int + func (r *Reference) Value() interface{}