feat(server): added telemetry queue for self hosted to upload instance stats to posthog on midnight

This commit is contained in:
Akhil Mohan
2024-02-26 19:52:38 +05:30
parent 8aaed739d5
commit d64d935d7d
9 changed files with 205 additions and 14 deletions
+3 -1
View File
@@ -14,5 +14,7 @@ export const keyStoreFactory = (redisUrl: string) => {
const deleteItem = async (key: string) => redis.del(key);
return { setItem, getItem, setItemWithExpiry, deleteItem };
const incrementBy = async (key: string, value: number) => redis.incrby(key, value);
return { setItem, getItem, setItemWithExpiry, deleteItem, incrementBy };
};