Versions in this module Expand all Collapse all v1 v1.0.0 Jan 19, 2020 Changes in this version + func BuildKey(args ...interface{}) string + type CacheLayer struct + func New(freshTime, lifeTime time.Duration) *CacheLayer + func (l *CacheLayer) Clear() + func (l *CacheLayer) ClearIfNilErr(err error) error + func (l *CacheLayer) Get(key string, output interface{}, fetchFn FetchFunc) error + func (l *CacheLayer) SetDebugLogger(logger DebugLogger) + func (l *CacheLayer) SetStoreOriginData() + type DebugLogger interface + Log func(keyname string, hit bool, msg string) + type FetchFunc func() (interface{}, error)