redispool

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(client *redis.Client, key string) string

GetKey 获取redis key value

func GetKeyIsExist

func GetKeyIsExist(client *redis.Client, key string) bool

GetKeyIsExist 判断key是否存在,若存在为true

func GetKeyNotExist

func GetKeyNotExist(client *redis.Client, key, val string, keySecond int) bool

GetKeyNotExist 判断key值是否存在,不存在为true,同时写入key,设置有效期

func NewRedisPool

func NewRedisPool(redisIP, redisPort, redisPassword string, redisDB int) *redis.Client

NewRedisPool redis连接池

Types

This section is empty.

Jump to

Keyboard shortcuts

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