MCPcopy Create free account
hub / github.com/buct2012dbl/Dorchestrator / has

Method has

coding-agent/src/context/shared-store.ts:61–72  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

59 }
60
61 has(key: string): boolean {
62 const entry = this.store.get(key);
63 if (!entry) return false;
64
65 // Check TTL
66 if (entry.ttl && Date.now() - entry.timestamp > entry.ttl) {
67 this.store.delete(key);
68 return false;
69 }
70
71 return true;
72 }
73
74 delete(key: string): void {
75 this.store.delete(key);

Callers 1

subscribeMethod · 0.45

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected