1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Disable idle checks for cluster connection

This commit is contained in:
evalphobia
2016-09-26 15:22:39 +09:00
parent 938235994e
commit 8f5aeb7065
2 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,7 @@ type Options struct {
IdleTimeout time.Duration
// Frequency of idle checks.
// Default is 1 minute.
// When minus value is set, then idle check is disabled.
IdleCheckFrequency time.Duration
// Enables read only queries on slave nodes.