Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lru ¶
type Lru interface {
Get(key interface{}) (value interface{}, ok bool)
GetKeyFromValue(value interface{}) (key interface{}, ok bool)
Put(key, value interface{})
// ForEach visits entries from most-recently-used to least-recently-used. Stops early if fn returns false.
ForEach(fn func(key, value interface{}) bool)
}
Lru simple, fast lru cache implementation
Click to show internal directories.
Click to hide internal directories.