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

Function setCachedEntry

admin_board/admin_board.ts:448–462  ·  view source on GitHub ↗
(
  target: TargetChat,
  userId: string,
  patch: Partial<AvgCacheEntry>,
)

Source from the content-addressed store, hash-verified

446 ...patch,
447 updatedAt: Date.now(),
448 };
449 await db.write();
450}
451
452async function setCachedAvgEntry(
453 target: TargetChat,
454 userId: string,
455 avgPerDay: number,
456): Promise<void> {
457 await setCachedEntry(target, userId, {
458 avgPerDay,
459 });
460}
461
462async function setCachedUserInfo(
463 target: TargetChat,
464 user: Api.User,
465): Promise<void> {

Callers 2

setCachedAvgEntryFunction · 0.85
setCachedUserInfoFunction · 0.85

Calls 3

getAvgCacheDbFunction · 0.85
getAvgCacheKeyFunction · 0.85
writeMethod · 0.80

Tested by

no test coverage detected