fix: avoid Redis INFO in restricted clients

This commit is contained in:
lunanting 2026-09-12 17:26:23 +08:00
parent c4f14b0cdf
commit 4f48a20670
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ function buildRedisClientConfig(config) {
retryStrategy: (times) => (times > 1 ? null : 200),
maxRetriesPerRequest: 1,
enableOfflineQueue: false,
enableReadyCheck: false,
lazyConnect: true,
};
}

View File

@ -377,6 +377,7 @@ async function probeRedisConnection(config) {
connectTimeout: REDIS_PROFILE_CONNECT_TIMEOUT_MS,
maxRetriesPerRequest: 1,
enableOfflineQueue: false,
enableReadyCheck: false,
retryStrategy: () => null,
});