Versions in this module Expand all Collapse all v1 v1.0.1 May 24, 2025 v1.0.0 Nov 7, 2024 Changes in this version + func Decr(val any) (any, error) + func GenericPing(c Cache) error + func Incr(val any) (any, error) + func Register(name string, adapter Cache) + type Cache interface + Decr func(key string) error + Delete func(key string) error + Flush func() error + Get func(key string) any + Incr func(key string) error + IsExist func(key string) bool + Ping func() error + Put func(key string, val any, timeout int64) error + StartAndGC func(opt Options) error + func NewCacher(opt Options) (Cache, error) + type MemoryCacher struct + func (c *MemoryCacher) Decr(key string) (err error) + func (c *MemoryCacher) Delete(key string) error + func (c *MemoryCacher) Flush() error + func (c *MemoryCacher) Get(key string) any + func (c *MemoryCacher) Incr(key string) (err error) + func (c *MemoryCacher) IsExist(key string) bool + func (c *MemoryCacher) Ping() error + func (c *MemoryCacher) Put(key string, val any, expire int64) error + func (c *MemoryCacher) StartAndGC(opt Options) error + type MemoryItem struct + type Options struct + Adapter string + AdapterConfig string + Interval int + OccupyMode bool + Section string