MCPcopy
hub / github.com/hwholiday/learning_tools / Lru

Struct Lru

LRU/list.go:11–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9type CallBack func(key interface{}, value interface{})
10
11type Lru struct {
12 max int
13 l *list.List
14 Call CallBack
15 cache map[interface{}]*list.Element
16 mu *sync.Mutex
17}
18
19type Node struct {
20 Key interface{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected