Skip to content

Commit

Permalink
chore(be): update redis keepAlive to 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
lehuygiang28 committed Jun 21, 2024
1 parent 61a779e commit 56aa441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/be/common/src/redis/redis.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { RedisService } from './services';
port: config.getOrThrow<number>('REDIS_PORT'),
password: config.getOrThrow<string>('REDIS_PASSWORD'),
connectTimeout: Number(config.get<number>('REDIS_CONNECT_TIMEOUT')) || 20000,
keepAlive: Number(config.get<number>('REDIS_KEEP_ALIVE')) || 1000, // Send a PING every 10 seconds
keepAlive: Number(config.get<number>('REDIS_KEEP_ALIVE')) || 10000, // Send a PING every 10 seconds
maxRetriesPerRequest: null,
reconnectOnError: () => {
const reconnectAndResendFailedCmd = 2;
Expand Down

0 comments on commit 56aa441

Please sign in to comment.