Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + type Callbacks struct + ForcedEvictionsCallback simplelru.EvictCallback + HitsCallback EventCallback + LookupsCallback EventCallback + ManualEvictionsCallback EventCallback + MissesCallback EventCallback + type EventCallback func(key interface{}) + type LRUCache struct + func NewLRUCache(size int, callbacks Callbacks) (*LRUCache, error) + func (lruCache *LRUCache) GetOrAdd(key interface{}, valConstructor ValConstructor) (interface{}, bool, error) + type Promise struct + type ValConstructor func() (interface{}, error)