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

Function cleanExpiredPreviews

server/src/creative-agent/preview-store.ts:38–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

36}
37
38export function cleanExpiredPreviews(): void {
39 const now = Date.now();
40 for (const [id, entry] of store) {
41 if (now > entry.expiresAt) {
42 store.delete(id);
43 }
44 }
45}

Callers 2

Calls 2

nowMethod · 0.80
deleteMethod · 0.80

Tested by

no test coverage detected