Add redis reconnect strategy

Attempt to reconnect to redis every minute if it closes unexpectedly
This commit is contained in:
Tarrgon
2025-06-04 12:48:31 -04:00
parent e94f570d0b
commit 6263266eb4
+4 -1
View File
@@ -82,7 +82,10 @@ let discordClient: Client;
export async function openRedisClient(url: string, discClient: Client) {
const client = await createClient({
url: `redis://${url}`
url: `redis://${url}`,
socket: {
reconnectStrategy: 60000
}
});
await client.connect();