redis

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectManager

type ConnectManager interface {
	Init(*Env) (*redis.Pool, error)
	Destroy(*redis.Pool)
}

ConnectManager func define

func NewRedisConnectManager

func NewRedisConnectManager() ConnectManager

NewRedisConnectManager new a redis manager

type Env

type Env struct {
	Network     string
	Address     string
	MaxIdle     int
	MaxActive   int
	DB          int
	Auth        string
	IdleTimeout time.Duration
}

Env redis init params.

Jump to

Keyboard shortcuts

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