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

Function NewIdKeyMap

internal/utils/expires/id_key_map.go:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8}
9
10func NewIdKeyMap() *IdKeyMap {
11 return &IdKeyMap{
12 idKeys: map[int64]string{},
13 keyIds: map[string]int64{},
14 }
15}
16
17func (this *IdKeyMap) Add(id int64, key string) {
18 oldKey, ok := this.idKeys[id]

Callers 1

TestNewIdKeyMapFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestNewIdKeyMapFunction · 0.74