Versions in this module Expand all Collapse all v0 v0.2.2 Aug 28, 2020 v0.2.1 Aug 22, 2020 Changes in this version + type Cacher struct + Component string + Container string + Context string + func NewCacher(cacherType CacherType, cacherEngine adapter.ICacherEngine) (*Cacher, error) + func (c *Cacher) Decr(key string) error + func (c *Cacher) Delete(key string) error + func (c *Cacher) Flush() error + func (c *Cacher) Get(key string) interface{} + func (c *Cacher) GetEngine() interface{} + func (c *Cacher) Incr(key string) error + func (c *Cacher) IsExist(key string) bool + func (c *Cacher) Put(key string, val interface{}, timeout int64) error + type CacherType string + const FileCacher + const LedisCacher + const MemcacheCacher + const MemoryCacher + const MyCacher + const NoDBCacher + const PGCacher + const RedisCacher + func NewCacherEngine(cacherType CacherType, ceOptions adapter.CEOptions) (adapter.ICacherEngine, CacherType, error)