Versions in this module Expand all Collapse all v0 v0.0.1 Feb 8, 2020 Changes in this version + const EmptyCacheExpiration + type BaseCache struct + func (c *BaseCache) Disabled() bool + func (c *BaseCache) Get(k key.Key) (interface{}, error) + func (c *BaseCache) GetBool(k key.Key) (bool, error) + func (c *BaseCache) GetString(k key.Key) (string, error) + func (c *BaseCache) GetTime(k key.Key) (time.Time, error) + type Cache interface + Disabled func() bool + Get func(k key.Key) (interface{}, error) + GetBool func(k key.Key) (bool, error) + GetString func(k key.Key) (string, error) + GetTime func(k key.Key) (time.Time, error) + func NewBaseCache(disabled bool, retrieveFunc RetrieveFunc, backend backend.Backend) Cache + type EmptyCache struct + type RetrieveFunc func(k key.Key) (interface{}, error)