redis

package
v0.0.0-...-65dd6d6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Pool *redis.Pool
)

Functions

func GetAllKeys

func GetAllKeys() ([]string, error)

func GetQueueLen

func GetQueueLen(strKey string) (int, error)

func Ping

func Ping() error

func PopQueue

func PopQueue(sKey string) (string, error)

func PopQueueBlock

func PopQueueBlock(sKey string, nTimeOut int) ([]string, error)

TimeOut must be shorter than DB connection timeout

func PushQueue

func PushQueue(sKey string, iValue interface{}) error

func ShowQueueValues

func ShowQueueValues(strKey string, nStart, nEnd int) ([]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