Versions in this module Expand all Collapse all v0 v0.0.3 Mar 15, 2020 Changes in this version type BaseCache + func (c *BaseCache) Delete(key Key) error + func (c *BaseCache) DirectGet(key Key) (interface{}, bool) + func (c *BaseCache) Exists(key Key) bool type Cache + Delete func(key Key) error + DirectGet func(key Key) (interface{}, bool) + Exists func(key Key) bool v0.0.2 Feb 12, 2020 Changes in this version + const EmptyCacheExpiration + type BaseCache struct + func (c *BaseCache) Disabled() bool + func (c *BaseCache) Get(key Key) (interface{}, error) + func (c *BaseCache) GetBool(k Key) (bool, error) + func (c *BaseCache) GetString(k Key) (string, error) + func (c *BaseCache) GetTime(k Key) (time.Time, error) + type Cache interface + Disabled func() bool + Get func(key Key) (interface{}, error) + GetBool func(key Key) (bool, error) + GetString func(key Key) (string, error) + GetTime func(key Key) (time.Time, error) + func NewBaseCache(disabled bool, retrieveFunc RetrieveFunc, backend backend.Backend) Cache + type EmptyCache struct + type Int64Key struct + func NewInt64Key(key int64) Int64Key + func (k Int64Key) Key() string + type Key interface + Key func() string + type RetrieveFunc func(key Key) (interface{}, error) + type StringKey struct + func NewStringKey(key string) StringKey + func (s StringKey) Key() string v0.0.1 Feb 8, 2020 Changes in this version + func NewCache(name string, disabled bool, retrieveFunc types.RetrieveFunc, ...) types.Cache + func NewRedisCache(name string, disabled bool, retrieveFunc types.RetrieveFunc, cli *redis.Client, ...) types.Cache