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

Method DeleteKey

internal/utils/expires/id_key_map.go:50–56  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

48}
49
50func (this *IdKeyMap) DeleteKey(key string) {
51 id, ok := this.keyIds[key]
52 if ok {
53 delete(this.idKeys, id)
54 }
55 delete(this.keyIds, key)
56}
57
58func (this *IdKeyMap) Len() int {
59 return len(this.idKeys)

Callers 1

TestNewIdKeyMapFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestNewIdKeyMapFunction · 0.64