Versions in this module Expand all Collapse all v0 v0.0.1 Sep 25, 2020 Changes in this version + type Cache struct + OnEvicted func(key string, value cache.Valuer) + func NewLRUCache(maxBytes int64, onEvicted func(string, cache.Valuer)) *Cache + func (c *Cache) Add(key string, value cache.Valuer) + func (c *Cache) Clear() + func (c *Cache) Get(key string) (value cache.Valuer, ok bool) + func (c *Cache) Len() int + func (c *Cache) Remove(key string) + type Value struct + func NewValue(data []byte, expire int64, groupName string) *Value + func (v *Value) Bytes() []byte + func (v *Value) Expire() int64 + func (v *Value) GroupName() string + func (v *Value) Len() int + func (v *Value) SetExpire(timestamp int64) + func (v *Value) String() string