Versions in this module Expand all Collapse all v1 v1.2.0 Sep 4, 2023 v1.0.0 Sep 4, 2023 Changes in this version + type Clock interface + Now func() time.Time + type Expiring struct + AllowExpiredGet bool + func NewExpiring() *Expiring + func NewExpiringWithClock(clock clock.Clock) *Expiring + func (c *Expiring) Delete(key interface{}) + func (c *Expiring) Get(key interface{}) (val interface{}, ok bool) + func (c *Expiring) Len() int + func (c *Expiring) Set(key interface{}, val interface{}, ttl time.Duration) + type LRUExpireCache struct + func NewLRUExpireCache(maxSize int) *LRUExpireCache + func NewLRUExpireCacheWithClock(maxSize int, clock Clock) *LRUExpireCache + func (c *LRUExpireCache) Add(key interface{}, value interface{}, ttl time.Duration) + func (c *LRUExpireCache) Get(key interface{}) (interface{}, bool) + func (c *LRUExpireCache) Keys() []interface{} + func (c *LRUExpireCache) Remove(key interface{})