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

Struct LRU

gcache/lru.go:5–11  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import "container/list"
4
5type LRU struct {
6 maxByte int64
7 useByte int64
8 ll *list.List
9 cache map[string]*list.Element
10 CallBack func(key string, val []byte)
11}
12
13type Node struct {
14 Key string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected