Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
38
export
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
createCreativeAgentRouter
Function · 0.85
creative-agent.test.ts
File · 0.85
Calls
2
now
Method · 0.80
delete
Method · 0.80
Tested by
no test coverage detected