MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / MemoryList

Struct MemoryList

internal/caches/list_memory.go:16–27  ·  view source on GitHub ↗

MemoryList 内存缓存列表管理

Source from the content-addressed store, hash-verified

14
15// MemoryList 内存缓存列表管理
16type MemoryList struct {
17 count int64
18
19 itemMaps map[string]map[string]*Item // prefix => { hash => item }
20
21 prefixes []string
22 locker sync.RWMutex
23 onAdd func(item *Item)
24 onRemove func(item *Item)
25
26 purgeIndex int
27}
28
29func NewMemoryList() ListInterface {
30 return &MemoryList{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected