Versions in this module Expand all Collapse all v0 v0.1.1 Jan 26, 2019 v0.1.0 Jan 12, 2019 Changes in this version + const Default_LFU_Size + type LFU struct + func NewLFUCache(size int) *LFU + func (l *LFU) Cap() int + func (l *LFU) Contains(key interface{}) bool + func (l *LFU) Get(key interface{}) (value interface{}, ok bool) + func (l *LFU) GetOrSet(key, value interface{}) (newValue interface{}, isGet bool) + func (l *LFU) Info() (hits int, misses int, maxSize int, currentSize int) + func (l *LFU) Keys() []interface{} + func (l *LFU) Len() int + func (l *LFU) PopOldest() (key, value interface{}) + func (l *LFU) Purge() + func (l *LFU) Remove(key interface{}) bool + func (l *LFU) Set(key, value interface{}) (evicted bool)