diff --git a/rueidis/config.go b/rueidis/config.go index 85680c99..17f83610 100644 --- a/rueidis/config.go +++ b/rueidis/config.go @@ -97,7 +97,7 @@ type Config struct { // CacheTTL TTL // - // Optional. Default is time.Second + // Optional. Default is time.Minute CacheTTL time.Duration } @@ -120,7 +120,7 @@ var ConfigDefault = Config{ DisableCache: false, AlwaysPipelining: true, Reset: false, - CacheTTL: time.Second, + CacheTTL: time.Minute, } // Helper function to set default values