MCPcopy
hub / github.com/chronark/highstorm / get

Method get

apps/web/lib/cache.ts:22–32  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

20 }
21
22 public get(key: string): TValue | null {
23 const data = this.map.get(key);
24 if (!data) {
25 return null;
26 }
27 if (data.exp < Date.now()) {
28 this.map.delete(key);
29 return null;
30 }
31 return data.value;
32 }
33}

Callers 1

handlerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected