Versions in this module Expand all Collapse all v1 v1.54.4 Nov 23, 2020 Changes in this version + type Cache struct + func New() *Cache + func (c *Cache) Clear() + func (c *Cache) Entries() int + func (c *Cache) Get(key string, create CreateFunc) (value interface{}, err error) + func (c *Cache) GetMaybe(key string) (value interface{}, found bool) + func (c *Cache) Pin(key string) + func (c *Cache) Put(key string, value interface{}) + func (c *Cache) Rename(oldKey, newKey string) (value interface{}, found bool) + func (c *Cache) Unpin(key string) + type CreateFunc func(key string) (value interface{}, ok bool, error error)