gredis

package
v0.0.0-...-e0e8746 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

RedisConn Redis连接

Functions

func Delete

func Delete(key string) (bool, error)

Delete 删除缓存

func Exists

func Exists(key string) bool

Exists 判断缓存是否存在

func Get

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

Get 获取缓存

func LikeDeletes

func LikeDeletes(key string) error

LikeDeletes 模糊删除缓存

func Set

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

Set 设置缓存

func Setup

func Setup() error

Setup 初始化Redis连接

Types

This section is empty.

Jump to

Keyboard shortcuts

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