gredis

package
v0.0.0-...-28f372b Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 4 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn *redis.Pool

Functions

func Delete

func Delete(key string) (bool, error)

Delete delete a kye

func Exists

func Exists(key string) bool

Exists check a key

func Get

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

Get get a key

func LikeDeletes

func LikeDeletes(key string) error

LikeDeletes batch delete

func Set

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

Set a key/value

func Setup

func Setup() error

Setup Initialize the Redis instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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