Versions in this module Expand all Collapse all v1 v1.0.0 Mar 23, 2021 Changes in this version + type Cache struct + func New(size int) *Cache + func (c *Cache) Delete(key string) + func (c *Cache) EvictAct() + func (c *Cache) Flush() + func (c *Cache) Get(key string) (interface{}, error) + func (c *Cache) Keys() []string + func (c *Cache) Len() int + func (c *Cache) Purge() + func (c *Cache) Remove(key string) + func (c *Cache) Set(key string, value interface{}) + func (c *Cache) SetDeleteFunc(fn deleteFuncType) + func (c *Cache) SetExpireDuration(expire time.Duration) + func (c *Cache) SetReadFunc(fn readFuncType) + func (c *Cache) SetWriteAlways() + func (c *Cache) SetWriteEvict() + func (c *Cache) SetWriteFunc(fn writeFuncType) + func (c *Cache) Sync() + func (c *Cache) WriteWaiting()