Versions in this module Expand all Collapse all v0 v0.2.0 Feb 21, 2023 Changes in this version + func NewLRUCache(maxSize int64) *lruCache + type Cache interface + Add func(key string, value Value) + AddWithExpiration func(key string, value Value, expirationTime time.Time) + Get func(key string) (Value, bool) + type MaxMemoryPolicy int + const ALLKEYS_LRU + const ALLKEYS_RANDOM + const VOLATILE_LRU + const VOLATILE_RANDOM + type Value interface + Len func() int