MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / GetFromCache

Function GetFromCache

pkg/faviconcache/faviconcache.go:182–190  ·  view source on GitHub ↗

TODO store in blockstore

(key string)

Source from the content-addressed store, hash-verified

180// TODO store in blockstore
181
182func GetFromCache(key string) (FaviconCacheItem, bool) {
183 faviconCacheLock.Lock()
184 defer faviconCacheLock.Unlock()
185 item, found := faviconCache[key]
186 if !found {
187 return FaviconCacheItem{}, false
188 }
189 return *item, true
190}
191
192func SetInCache(key string, item FaviconCacheItem) {
193 faviconCacheLock.Lock()

Callers 1

GetFaviconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected