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

Method GetKey

internal/utils/counters/counter.go:111–113  ·  view source on GitHub ↗

GetKey get value of string key

(key string)

Source from the content-addressed store, hash-verified

109
110// GetKey get value of string key
111func (this *Counter[T]) GetKey(key string) T {
112 return this.Get(this.hash(key))
113}
114
115// Reset key
116func (this *Counter[T]) Reset(key uint64) {

Callers 1

TestCounter_IncreaseKeyFunction · 0.80

Calls 2

GetMethod · 0.95
hashMethod · 0.95

Tested by 1

TestCounter_IncreaseKeyFunction · 0.64