gredis

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 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)

delete a key

func Exists

func Exists(key string) bool

check a key

func Get

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

get a key

func Set

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

Set a key/value

func Setup

func Setup() error

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