Versions in this module Expand all Collapse all v1 v1.2.3 Dec 10, 2022 Changes in this version + const DEL + const EVICT + const GET + const PUT + func ToInt64(b []byte) (int64, bool) + type Cache struct + func NewLRUCache(bucketCnt, capPerBkt uint16, expiration ...time.Duration) *Cache + func (c *Cache) Del(key string) + func (c *Cache) Get(key string) (any, bool) + func (c *Cache) GetBytes(key string) ([]byte, bool) + func (c *Cache) GetInt64(key string) (int64, bool) + func (c *Cache) Inspect(ipr inspector) + func (c *Cache) LRU2(capPerBkt uint16) *Cache + func (c *Cache) Len() int + func (c *Cache) Put(key string, val any) + func (c *Cache) PutBytes(key string, b []byte) + func (c *Cache) PutEx(key string, val any, ex time.Duration) + func (c *Cache) PutExAt(key string, val any, ea int64) + func (c *Cache) PutInt64(key string, d int64) + func (c *Cache) Walk(walker func(key string, ifc any, bytes []byte, expireAt int64) bool)