MCPcopy
hub / github.com/wavetermdev/waveterm / Get

Method Get

pkg/util/ds/expmap.go:81–87  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

79}
80
81func (em *ExpMap[T]) Get(key string) (T, bool) {
82 em.lock.Lock()
83 defer em.lock.Unlock()
84 em.expireItems_nolock()
85 v, ok := em.m[key]
86 return v.Val, ok
87}

Callers 15

fetchFaviconFunction · 0.45
GetWaveAIChatCommandMethod · 0.45
doRequestFunction · 0.45
UpdateActivityFunction · 0.45
ReadFullConfigFunction · 0.45
GetConfigSubdirsFunction · 0.45
getTSFieldNameFunction · 0.45
isFieldOmitEmptyFunction · 0.45
generateTSTypeInternalFunction · 0.45
SetRTInfoFunction · 0.45
DBGetSingletonByTypeFunction · 0.45

Calls 1

expireItems_nolockMethod · 0.95

Tested by 3

TestSyncMap_SetFunction · 0.36
TestSyncMap_GetFunction · 0.36
TestSyncMap_DeleteFunction · 0.36