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

Function NewMemoryList

internal/caches/list_memory.go:29–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func NewMemoryList() ListInterface {
30 return &MemoryList{
31 itemMaps: map[string]map[string]*Item{},
32 }
33}
34
35func (this *MemoryList) Init() error {
36 this.prefixes = []string{"000"}

Callers 11

TestMemoryList_AddFunction · 0.92
TestMemoryList_RemoveFunction · 0.92
TestMemoryList_PurgeFunction · 0.92
TestMemoryList_StatFunction · 0.92
TestMemoryList_PurgeLFUFunction · 0.92
TestMemoryList_CleanAllFunction · 0.92
TestMemoryList_GCFunction · 0.92
BenchmarkMemoryListFunction · 0.92
NewMemoryStorageFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestMemoryList_AddFunction · 0.74
TestMemoryList_RemoveFunction · 0.74
TestMemoryList_PurgeFunction · 0.74
TestMemoryList_StatFunction · 0.74
TestMemoryList_PurgeLFUFunction · 0.74
TestMemoryList_CleanAllFunction · 0.74
TestMemoryList_GCFunction · 0.74
BenchmarkMemoryListFunction · 0.74