This commit is contained in:
PxlLoewe
2025-03-16 13:56:18 -07:00
parent cf61740698
commit 4862f73612
26 changed files with 1268 additions and 160 deletions

View File

@@ -5,4 +5,13 @@ export const subClient = pubClient.duplicate();
Promise.all([pubClient.connect(), subClient.connect()]).then(() => {
console.log("Redis connected");
pubClient.keys("dispatchers*").then((keys) => {
if (!keys) return;
keys.forEach(async (key) => {
await pubClient.json.del(key);
});
});
});
pubClient.on("error", (err) => console.log("Redis Client Error", err));
subClient.on("error", (err) => console.log("Redis Client Error", err));