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

Function getSingleOrefAtomCache

frontend/app/store/global.ts:278–285  ·  view source on GitHub ↗
(oref: string)

Source from the content-addressed store, hash-verified

276}
277
278function getSingleOrefAtomCache(oref: string): Map<string, Atom<any>> {
279 let orefCache = orefAtomCache.get(oref);
280 if (orefCache == null) {
281 orefCache = new Map<string, Atom<any>>();
282 orefAtomCache.set(oref, orefCache);
283 }
284 return orefCache;
285}
286
287// this function should be kept up to date with IsBlockTermDurable in pkg/jobcontroller/jobcontroller.go
288// Note: null/false both map to false in the Go code, but this returns a special null value

Callers 3

getOrefMetaKeyAtomFunction · 0.85
getSingleBlockAtomCacheFunction · 0.85
getSingleConnAtomCacheFunction · 0.85

Calls 2

getMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected