redis

package
v0.0.0-...-f1b58f7 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*option)

func WithAddr

func WithAddr(addr string) Option

WithAddr 连接地址

func WithNetwork

func WithNetwork(n string) Option

WithNetwork 网络类型

func WithPass

func WithPass(pass string) Option

WithPass 密码

func WithSelectDB

func WithSelectDB(db int) Option

WithSelectDB 选择db

func WithSize

func WithSize(size int) Option

WithSize 池子数

func WithTimeout

func WithTimeout(d time.Duration) Option

WithTimeout 超时

type Redis

type Redis interface {
	Do(res interface{}, cmd string, args ...string) error
}

func NewRadixRedis

func NewRadixRedis(opts ...Option) Redis

NewRadixRedis 实例化

Jump to

Keyboard shortcuts

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