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

Method set

server/src/cache.ts:14–19  ·  view source on GitHub ↗
(key: string, value: T)

Source from the content-addressed store, hash-verified

12 }
13
14 set(key: string, value: T): void {
15 this.cache.set(key, {
16 value,
17 expiresAt: Date.now() + this.ttlMs,
18 });
19 }
20
21 get(key: string): T | undefined {
22 const entry = this.cache.get(key);

Callers 15

buildScenarioFlagIndexFunction · 0.45
lintDocFunction · 0.45
renderFunction · 0.45
renderCatalogFunction · 0.45
loadSchemaFunction · 0.45
getValidatorFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
lintDocFunction · 0.45
lintFileFunction · 0.45
mainFunction · 0.45

Calls 1

nowMethod · 0.80

Tested by 11

loadAndCompileSchemaFunction · 0.36
loadAndCompileSchemaFunction · 0.36
runTestsFunction · 0.36
runAllFunction · 0.36
callMcpFunction · 0.36
sendWebhookFunction · 0.36
fetchRawGzipFunction · 0.36
postListFunction · 0.36
callToolFunction · 0.36
deduplicateZoomRowsFunction · 0.36
registryFromFunction · 0.36