Versions in this module Expand all Collapse all v0 v0.0.1 May 18, 2023 Changes in this version + type FrequencyNode struct + type KeyRefNode struct + type KeyValueEntry struct + Frequency uint + Key *K + Value *V + type LFUCache struct + func NewLFUCache(maxSize uint) *LFUCache[K, V] + func NewLazyLFUCache(maxSize uint, lazyCounterSize uint) *LFUCache[K, V] + func (lfu *LFUCache[comparable, any]) AsSlice() *[]KeyValueEntry[comparable, any] + func (lfu *LFUCache[comparable, any]) CurrentSize() uint + func (lfu *LFUCache[comparable, any]) Delete(key comparable) error + func (lfu *LFUCache[comparable, any]) Evict() error + func (lfu *LFUCache[comparable, any]) FlushLazyCounter() error + func (lfu *LFUCache[comparable, any]) Get(key comparable) (*any, bool) + func (lfu *LFUCache[comparable, any]) GetLeastFrequencyItems() *[]KeyValueEntry[comparable, any] + func (lfu *LFUCache[comparable, any]) GetTopFrequencyItems() *[]KeyValueEntry[comparable, any] + func (lfu *LFUCache[comparable, any]) IsFull() bool + func (lfu *LFUCache[comparable, any]) Keys() []comparable + func (lfu *LFUCache[comparable, any]) MaxSize() uint + func (lfu *LFUCache[comparable, any]) Put(key comparable, value any, replace bool) error + func (lfu *LFUCache[comparable, any]) SetMaxSize(size uint) + type LFULazyCounter struct