gredis

package
v0.0.0-...-c6f1323 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

redigo 功能封装 设置 RedisConn 为 redis.Pool(连接池)并配置了它的一些参数:

Functions

func Delete

func Delete(key string) (bool, error)

通过key 从redis中删除key

func Exists

func Exists(key string) bool

exists check a key 检查key是否在redis中

func Get

func Get(key string) ([]byte, error)

通过key从redis获取值,值为[]byte类型

func LikeDeletes

func LikeDeletes(key string) error

通过key模糊搜索进行批量删除key

func Set

func Set(key string, data interface{}, time int) error

Set a key/value time:(expire)过期时间

func Setup

func Setup() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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