mirror of
https://github.com/redis/go-redis.git
synced 2025-04-17 20:17:02 +03:00
docs: update doc of redis option (#2567)
This commit is contained in:
parent
8b2bcd5a85
commit
f1c2e3261e
@ -104,8 +104,10 @@ type Options struct {
|
|||||||
PoolTimeout time.Duration
|
PoolTimeout time.Duration
|
||||||
// Minimum number of idle connections which is useful when establishing
|
// Minimum number of idle connections which is useful when establishing
|
||||||
// new connection is slow.
|
// new connection is slow.
|
||||||
|
// Default is 0. the idle connections are not closed by default.
|
||||||
MinIdleConns int
|
MinIdleConns int
|
||||||
// Maximum number of idle connections.
|
// Maximum number of idle connections.
|
||||||
|
// Default is 0. the idle connections are not closed by default.
|
||||||
MaxIdleConns int
|
MaxIdleConns int
|
||||||
// ConnMaxIdleTime is the maximum amount of time a connection may be idle.
|
// ConnMaxIdleTime is the maximum amount of time a connection may be idle.
|
||||||
// Should be less than server's timeout.
|
// Should be less than server's timeout.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user