docs: update doc of redis option (#2567)

This commit is contained in:
fengyun.rui 2023-04-28 14:47:01 +08:00 committed by GitHub
parent 8b2bcd5a85
commit f1c2e3261e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -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.