conn

package
v0.0.0-...-200fc73 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RedisIP       string = "192.168.0.197"
	RedisPort     int    = 6379
	RedisPassword string = "love0021$%"
	DBID          int    = 4
)

Functions

func RConn

func RConn(ip string, port int, password string) (redis.Conn, error)

RConn 普通连接 ip : redis服务地址 port: Redis 服务端口 password Redis 服务密码 返回redis连接

func RedisConn

func RedisConn() (redis.Conn, error)

指定db的连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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