redis

package
v0.0.0-...-03eec91 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Conn

func Conn(db int) (*redis.Client, error)

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

func Connect

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

Connect 用配置文件连接数据库

func ConnectDB

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

ConnectDB 连接redis

func DB

func DB(db int) *redis.Client

DB 获取连接的实例

func Init

func Init(db int) error

Init 初始化数据库

Types

type Client

type Client = redis.Client

Client Redis client

type Options

type Options = redis.Options

Options ...

Jump to

Keyboard shortcuts

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