redis

package
v0.0.0-...-3e386e2 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decr

func Decr(key string) error

Decr decrease counter in redis.

func Delete

func Delete(key string) error

Delete delete value in redis.

func Get

func Get(key string) string

Get value from redis.

func Incr

func Incr(key string) error

Incr increase counter in redis.

func Init

func Init()

func IsExist

func IsExist(key string) bool

IsExist check cache's existence in redis.

func Lpush

func Lpush(key string, val string) error

lpush value to redis.

func Put

func Put(key string, val interface{}, timeout int) error

Put put value to redis.

func Rpop

func Rpop(key string) string

rpop value from redis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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