courrier redis

This commit is contained in:
alma 2025-04-27 13:42:18 +02:00
parent bfb5441b3f
commit a3f8fd4082

View File

@ -9,8 +9,8 @@ let redisClient: Redis | null = null;
*/
export function getRedisClient(): Redis {
if (!redisClient) {
// Use existing Redis configuration from environment
// This will respect any configuration settings in your environment
// Let IoRedis read from environment variables automatically
// It will read REDIS_URL, REDIS_HOST, REDIS_PORT, REDIS_PASSWORD, etc.
redisClient = new Redis({
retryStrategy: (times) => {
// Exponential backoff with cap