gredis

package
v0.0.0-...-8e399c3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisConn redis.UniversalClient

Functions

func BLPop

func BLPop(key string, timeout time.Duration) ([]string, error)

func CloseRedis

func CloseRedis() error

func Delete

func Delete(key string) error

Delete delete a kye

func Get

func Get(key string) (string, error)

Get get a key

func LPush

func LPush(key string, data interface{}) error

func RPush

func RPush(key string, data interface{}) error

func Set

func Set(key string, data interface{}, expire time.Duration) 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