MCPcopy Create free account
hub / github.com/Super-long/ChubbyGo / BaseStore

Method BaseStore

BaseServer/concurrentHashMap.go:354–358  ·  view source on GitHub ↗
(k string, v interface{})

Source from the content-addressed store, hash-verified

352}
353
354func (myMap *BaseMap) BaseStore(k string, v interface{}) {
355 myMap.Lock()
356 defer myMap.Unlock()
357 myMap.m[k] = v
358}
359
360func (myMap *BaseMap) BaseGet(k string) interface{} {
361 myMap.Lock()

Callers 4

BenchmarkGetKey_BaseMapFunction · 0.95
BenchmarkPutGet_BaseMapFunction · 0.95
BenchmarkDelete_BaseMapFunction · 0.95

Calls

no outgoing calls

Tested by 4

BenchmarkGetKey_BaseMapFunction · 0.76
BenchmarkPutGet_BaseMapFunction · 0.76
BenchmarkDelete_BaseMapFunction · 0.76