gredis

package
v0.0.0-...-4caec29 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

Functions

func Delete

func Delete(key string) (bool, error)

删除redis键

func Exists

func Exists(key string) bool

判断redis键是否存在

func Get

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

获取redis键对应的值的字节数组

func LikeDeletes

func LikeDeletes(key string) error

模糊删除redis键

func Set

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

设置redis键值对

func Setup

func Setup() error

初始化redis相关连接和设置

Types

This section is empty.

Jump to

Keyboard shortcuts

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