redis

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

DB redis实例

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

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