mirror of
https://github.com/joeseesun/wechat-radar.git
synced 2026-09-10 00:38:29 +09:00
Initial open source release
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user