Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
func WithConnCheckInterval ¶
WithConnCheckInterval specifies the minimum interval between two times of checking idle connection health.
func WithDialConnectTimeout ¶
WithDialConnectTimeout specifies the timeout for connecting to the Redis server.
func WithIdleTimeout ¶
WithIdleTimeout specifies the timeout for idle connection.
func WithMaxActive ¶
WithMaxActive specifies the maximum number of connections allocated by the pool at a given time. When zero, there is no limit on the number of connections in the pool.
func WithMaxIdle ¶
WithMaxIdle specifies the maximum number of idle connections in the pool.
Click to show internal directories.
Click to hide internal directories.