MCPcopy Index your code
hub / github.com/simstudioai/sim / cleanupExpiredValues

Function cleanupExpiredValues

apps/sim/lib/execution/payloads/cache.ts:36–43  ·  view source on GitHub ↗
(now = Date.now())

Source from the content-addressed store, hash-verified

34}
35
36function cleanupExpiredValues(now = Date.now()): void {
37 for (const [id, entry] of inMemoryValues.entries()) {
38 if (entry.expiresAt <= now) {
39 inMemoryValues.delete(id)
40 inMemoryBytes -= entry.size
41 }
42 }
43}
44
45export function cacheLargeValue(
46 id: string,

Callers 2

cacheLargeValueFunction · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected