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

Function getCacheKey

clean_member/clean_member.ts:60–62  ·  view source on GitHub ↗
(chatId: number, mode: string, day: number)

Source from the content-addressed store, hash-verified

58}
59
60function getFromCache(chatId: number, mode: string, day: number): CacheData | null {
61 const key = getCacheKey(chatId, mode, day);
62 const cached = cache.get(key);
63 if (cached && Date.now() - cached.timestamp < CACHE_TTL) {
64 return cached.data;
65 }

Callers 2

getFromCacheFunction · 0.85
setCacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected