Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheEntry ¶
type CacheEntry struct {
Key string
Value interface{}
// contains filtered or unexported fields
}
CacheEntry - It stoes the key and value and holds address to DLL Node of that frequency
type EvictionChannel ¶
type EvictionChannel struct {
Key string
Value interface{}
}
type LFUCache ¶
type LFUCache struct {
EvictionChannel chan EvictionChannel //this channel is to send evictedInformation, if there is a listener
// contains filtered or unexported fields
}
LFUCache - LFU Cache
func NewLFUCache ¶
func (*LFUCache) RemoveEntry ¶
func (c *LFUCache) RemoveEntry(currentNode *list.Element, e *CacheEntry)
Click to show internal directories.
Click to hide internal directories.