Documentation ¶
Index ¶
- func DefaultDialOpts() []redis.DialOption
- type IMode
- type PoolOption
- func DefaultPoolOpts() []PoolOption
- func IdleTimeout(value time.Duration) PoolOption
- func MaxActive(value int) PoolOption
- func MaxConnLifetime(value time.Duration) PoolOption
- func MaxIdle(value int) PoolOption
- func TestOnBorrow(value func(c redis.Conn, t time.Time) (err error)) PoolOption
- func Wait(value bool) PoolOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultDialOpts ¶
func DefaultDialOpts() []redis.DialOption
Types ¶
type PoolOption ¶
func DefaultPoolOpts ¶
func DefaultPoolOpts() []PoolOption
func IdleTimeout ¶
func IdleTimeout(value time.Duration) PoolOption
func MaxActive ¶
func MaxActive(value int) PoolOption
func MaxConnLifetime ¶
func MaxConnLifetime(value time.Duration) PoolOption
func MaxIdle ¶
func MaxIdle(value int) PoolOption
func TestOnBorrow ¶
func Wait ¶
func Wait(value bool) PoolOption
Click to show internal directories.
Click to hide internal directories.