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] 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