rediscli

package
v0.0.0-...-d770c28 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pool *redis.Pool
)

Pool is redis pool instance

Functions

func Get

func Get(key string) (string, error)

Get gets value from redis

func GetSetMembers

func GetSetMembers(key string) (members []string, err error)

func Invalidate

func Invalidate(key string) error

func Set

func Set(key, value string, exp int32) error

Set sets key-value pair in redis with expiration time

func SetAdd

func SetAdd(key string, value string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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