Initial open source release

This commit is contained in:
joeseesun
2026-05-24 13:42:56 +08:00
commit 8abb29e13e
75 changed files with 13298 additions and 0 deletions
+14
View File
@@ -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;