MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / getAvgCacheKey

Function getAvgCacheKey

admin_board/admin_board.ts:433–435  ·  view source on GitHub ↗
(target: TargetChat, userId: string)

Source from the content-addressed store, hash-verified

431 if (!entry) return undefined;
432 if (Date.now() - entry.updatedAt > DAY_MS) return undefined;
433 return entry;
434}
435
436async function setCachedEntry(
437 target: TargetChat,
438 userId: string,

Callers 2

getCachedAvgEntryFunction · 0.85
setCachedEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected