Documentation ¶
Index ¶
- type Cache
- type Elem
- type EvictCallback
- type LRU
- func (lru *LRU) All() []*Elem
- func (lru *LRU) Clear()
- func (lru *LRU) Contains(key string) interface{}
- func (lru *LRU) Get(key string) (interface{}, bool)
- func (lru *LRU) Init(data []*Elem) bool
- func (lru *LRU) Len() int
- func (lru *LRU) Print()
- func (lru *LRU) Put(key string, value interface{}) (interface{}, bool)
- func (lru *LRU) Remove(key string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EvictCallback ¶
type EvictCallback func(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.