From f1c2e3261e186462cb6e1a7713bfd3ff73c174b6 Mon Sep 17 00:00:00 2001 From: "fengyun.rui" Date: Fri, 28 Apr 2023 14:47:01 +0800 Subject: [PATCH] docs: update doc of redis option (#2567) --- options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.go b/options.go index b9e1d4c7c..a4af5884f 100644 --- a/options.go +++ b/options.go @@ -104,8 +104,10 @@ type Options struct { PoolTimeout time.Duration // Minimum number of idle connections which is useful when establishing // new connection is slow. + // Default is 0. the idle connections are not closed by default. MinIdleConns int // Maximum number of idle connections. + // Default is 0. the idle connections are not closed by default. MaxIdleConns int // ConnMaxIdleTime is the maximum amount of time a connection may be idle. // Should be less than server's timeout.