diff --git a/rueidis/README.md b/rueidis/README.md index 06fb4a43..5646063b 100644 --- a/rueidis/README.md +++ b/rueidis/README.md @@ -183,7 +183,7 @@ type Config struct { // CacheTTL TTL // - // Optional. Default is time.Second + // Optional. Default is time.Minute CacheTTL time.Duration } ``` @@ -207,6 +207,6 @@ var ConfigDefault = Config{ DisableCache: false, AlwaysPipelining: true, Reset: false, - CacheTTL: time.Second, + CacheTTL: time.Minute, } ``` 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