MCPcopy
hub / github.com/giancarloerra/SocratiCode / get

Method get

src/services/symbol-graph-cache.ts:38–44  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

36 constructor(private readonly capacity: number) {}
37
38 get(key: K): V | undefined {
39 const v = this.map.get(key);
40 if (v === undefined) return undefined;
41 this.map.delete(key);
42 this.map.set(key, v);
43 return v;
44 }
45
46 set(key: K, value: V): void {
47 if (this.map.has(key)) this.map.delete(key);

Callers 15

getLanguageFromExtensionFunction · 0.80
handleGraphToolFunction · 0.80
handleContextToolFunction · 0.80
viewer-app.jsFile · 0.80
buildSymbolNeighbourhoodFunction · 0.80
setSymbolSeedFunction · 0.80
baseCloneFunction · 0.80
baseMergeDeepFunction · 0.80
equalArraysFunction · 0.80
equalByTagFunction · 0.80
equalObjectsFunction · 0.80
mapCacheGetFunction · 0.80

Calls 2

deleteMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected