redis

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conn

func Conn(db int) *redis.Client

Conn 用配置文件的默认参数连接数据库

func Connect added in v0.1.6

func Connect(db int, prePath string) *redis.Client

Connect 用配置文件连接数据库

func ConnectDB added in v0.1.6

func ConnectDB(opt *redis.Options) (*redis.Client, error)

ConnectDB 连接redis

func DB added in v0.1.8

func DB(db int) *redis.Client

DB 获取连接的实例

func Init added in v0.1.9

func Init(db int)

Init 初始化数据库

Types

type Client

type Client = redis.Client

Client Redis client

type Options added in v0.1.8

type Options = redis.Options

Options ...

Jump to

Keyboard shortcuts

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