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

Method Init

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

Source from the content-addressed store, hash-verified

33}
34
35func (this *MemoryList) Init() error {
36 this.prefixes = []string{"000"}
37 for i := 100; i <= 999; i++ {
38 this.prefixes = append(this.prefixes, strconv.Itoa(i))
39 }
40
41 for _, prefix := range this.prefixes {
42 this.itemMaps[prefix] = map[string]*Item{}
43 }
44
45 return nil
46}
47
48func (this *MemoryList) Reset() error {
49 this.locker.Lock()

Callers 2

TestMemoryList_StatFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestMemoryList_StatFunction · 0.76