Documentation ¶
Overview ¶
*
- @Time : 2020/12/28 1:40 下午
- @Author : MassAdobe
- @Description: rds
*
Index ¶
Constants ¶
View Source
const ( RDS_PING = "PING" RDS_HEXISTS = "hexists" RDS_HSET = "hset" RDS_HGET = "hget" RDS_HDEL = "hdel" RDS_HGETALL = "hgetall" RDS_HKEYS = "hkeys" RDS_EXISTS = "exists" RDS_GET = "get" RDS_SET = "set" RDS_ZADD = "zadd" RDS_ZREVRANK = "zrevrank" RDS_ZCOUNT = "zcount" RDS_DEL = "del" RDS_SETEX = "setex" RDS_HLEN = "hlen" RDS_INCR = "incr" RDS_HINCRBY = "hincrby" )
*
- @Author: MassAdobe
- @TIME: 2020/12/28 1:41 下午
- @Description: redis的命令常量
*
View Source
const (
REDIS_DIAL_TCP = "tcp"
)
Variables ¶
View Source
var (
Redis *redis.Pool
)
Functions ¶
func CloseRds ¶ added in v1.2.0
func CloseRds()
*
- @Author: MassAdobe
- @TIME: 2020/12/28 2:27 下午
- @Description: 关停redis连接池,释放句柄
*
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.