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

Function setCache

clean_member/clean_member.ts:74–78  ·  view source on GitHub ↗
(chatId: number, mode: string, day: number, data: CacheData)

Source from the content-addressed store, hash-verified

72 cache.set(key, { data, timestamp: Date.now() });
73 trimCache();
74}
75
76async function ensureDirectories(): Promise<void> {
77 try {
78 if (!fs.existsSync(CACHE_DIR)) {
79 fs.mkdirSync(CACHE_DIR, { recursive: true });
80 }
81 } catch (error) {

Callers 1

clean_memberFunction · 0.85

Calls 3

getCacheKeyFunction · 0.85
trimCacheFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected