MCPcopy
hub / github.com/diced/zipline / get

Method get

src/lib/timedCache.ts:27–37  ·  view source on GitHub ↗
(key: K)

Source from the content-addressed store, hash-verified

25 }
26
27 get(key: K): V | undefined {
28 const entry = this.cache.get(key);
29 if (!entry) return undefined;
30
31 if (entry.expiresAt <= Date.now()) {
32 this.delete(key);
33 return undefined;
34 }
35
36 return entry.value;
37 }
38
39 has(key: K): boolean {
40 return this.get(key) !== undefined;

Callers 15

hasMethod · 0.95
ComponentFunction · 0.45
LoginFunction · 0.45
loaderFunction · 0.45
fetchApiFunction · 0.45
fetchToDataURLFunction · 0.45
buildFolderHierarchyFunction · 0.45
traverseFunction · 0.45
setMethod · 0.45
deleteMethod · 0.45
registerRoutesFunction · 0.45
robots.txt.tsFile · 0.45

Calls 1

deleteMethod · 0.95

Tested by

no test coverage detected