MCPcopy Create free account
hub / github.com/ReAPI-com/mcp-openapi / cleanup

Method cleanup

src/core/Cache.ts:44–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 }
43
44 private cleanup(): void {
45 const now = Date.now();
46 for (const [key, entry] of this.cache.entries()) {
47 if (now - entry.timestamp > this.ttl) {
48 this.cache.delete(key);
49 }
50 }
51 }
52
53 set(key: K, value: V): void {
54 // Remove oldest entry if we're at capacity

Callers 1

startCleanupTimerMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected