MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / get

Method get

server/src/cache.ts:21–31  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

19 }
20
21 get(key: string): T | undefined {
22 const entry = this.cache.get(key);
23 if (!entry) return undefined;
24
25 if (Date.now() > entry.expiresAt) {
26 this.cache.delete(key);
27 return undefined;
28 }
29
30 return entry.value;
31 }
32
33 has(key: string): boolean {
34 return this.get(key) !== undefined;

Callers 15

hasMethod · 0.95
handle_deep_linkFunction · 0.45
buildScenarioFlagIndexFunction · 0.45
lintDocFunction · 0.45
renderFunction · 0.45
loadSchemaFunction · 0.45
getValidatorFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
lintDocFunction · 0.45
lintFileFunction · 0.45

Calls 2

nowMethod · 0.80
deleteMethod · 0.80

Tested by 15

loadAndCompileSchemaFunction · 0.36
loadAndCompileSchemaFunction · 0.36
runTestsFunction · 0.36
fetchRawGzipFunction · 0.36
buildAppFunction · 0.36
simulateListToolsFunction · 0.36
simulateCallToolFunction · 0.36
simulateCallToolAsTaskFunction · 0.36
simulateGetTaskFunction · 0.36
simulateGetTaskResultFunction · 0.36
simulateListTasksFunction · 0.36
simulateCancelFunction · 0.36