rds

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

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连接池,释放句柄

*

func Get

func Get() redis.Conn

*

  • @Author: MassAdobe
  • @TIME: 2020/12/28 2:15 下午
  • @Description: 获取redis的连接

*

func InitRds

func InitRds()

*

  • @Author: MassAdobe
  • @TIME: 2020/12/28 1:43 下午
  • @Description: 初始化redis连接池

*

Types

This section is empty.

Jump to

Keyboard shortcuts

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