From 558ec79281c07f7c07a9525dd4c50bce37127182 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:51:17 -0400 Subject: [PATCH 1/2] Update README.md --- rueidis/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, } ``` From 946562e2a5ba24db3f530b71e561629af12b4a24 Mon Sep 17 00:00:00 2001 From: Juan Calderon-Perez <835733+gaby@users.noreply.github.com> Date: Sat, 16 Sep 2023 12:51:55 -0400 Subject: [PATCH 2/2] Update config.go --- rueidis/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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