Versions in this module Expand all Collapse all v1 v1.0.1 Mar 10, 2023 Changes in this version + type Cache interface + Get func(key interface{}) (interface{}, error) + Remove func(key interface{}) bool + Set func(key, value interface{}) error + SetWithExpire func(key, value interface{}, expiration time.Duration) error + func NewCache(capacity int, enable bool) Cache + type LRU struct + func (l *LRU) Disable() + func (l *LRU) Enable() + func (l *LRU) Expire(key interface{}) bool + func (l *LRU) Remove(key interface{}) bool + func (l *LRU) Set(key, value interface{}) error + func (l *LRU) SetWithExpire(key, value interface{}, expiration time.Duration) error + func (l LRU) Get(key interface{}) (interface{}, error)