mode

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 3 Imported by: 20

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultDialOpts

func DefaultDialOpts() []redis.DialOption

Types

type IMode

type IMode interface {
	GetConn() redis.Conn
	NewConn() (redis.Conn, error)
	String() string
}

type PoolOption

type PoolOption func(pool *redis.Pool)

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 TestOnBorrow(value func(c redis.Conn, t time.Time) (err error)) PoolOption

func Wait

func Wait(value bool) PoolOption

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL