mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-18 00:10:32 +00:00
Add a reconnection interval constant
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { createClient } from 'redis';
|
||||
import { REDIS_RECONNECT_INTERVAL } from "../environment";
|
||||
|
||||
export abstract class BaseRedisRepository {
|
||||
protected redisClient;
|
||||
@@ -9,7 +10,8 @@ export abstract class BaseRedisRepository {
|
||||
socket: {
|
||||
tls: process.env.NODE_ENV === 'production',
|
||||
rejectUnauthorized: false,
|
||||
}
|
||||
reconnectStrategy: REDIS_RECONNECT_INTERVAL,
|
||||
},
|
||||
}),
|
||||
) {
|
||||
this.redisClient = redisClient;
|
||||
|
||||
Reference in New Issue
Block a user