mirror of
https://github.com/joeseesun/wechat-radar.git
synced 2026-09-08 03:18:31 +09:00
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
import NodeCache from 'node-cache';
|
|
|
|
export const cache = new NodeCache({
|
|
stdTTL: 30,
|
|
checkperiod: 60,
|
|
useClones: false,
|
|
});
|
|
|
|
export const CK = {
|
|
sessions: () => 'sessions:all',
|
|
daemon: () => 'daemon:status',
|
|
stats: (chatroomId: string, since: string, until: string) =>
|
|
`stats:${chatroomId}:${since}:${until}`,
|
|
} as const;
|