MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / get

Method get

src/utils/tool-cache.ts:43–53  ·  view source on GitHub ↗
(toolName: string, args: any)

Source from the content-addressed store, hash-verified

41 }
42
43 get(toolName: string, args: any): string | null {
44 const key = this.keyFor(toolName, args);
45 const entry = this.cache.get(key);
46 if (entry) {
47 entry.hits++;
48 this.hits++;
49 return entry.result;
50 }
51 this.misses++;
52 return null;
53 }
54
55 set(toolName: string, args: any, result: string): void {
56 if (typeof result !== 'string') return;

Callers 4

openDatabaseFunction · 0.45
evictOldestMethod · 0.45
retryAfterMsFunction · 0.45
isHostReachableFunction · 0.45

Calls 1

keyForMethod · 0.95

Tested by

no test coverage detected