redis

package
v0.0.0-...-026aa9f Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ctx     = context.Background()
	KeyName = "EmailQueue"
)

Functions

func ConnectToRedis

func ConnectToRedis(logger *utility.Logger, configDatabases config.Redis) *redis.Client

func PopFromQueue

func PopFromQueue(rdb *redis.Client) (interface{}, error)

func PushToQueue

func PushToQueue(rdb *redis.Client, value interface{}) error

func RedisDelete

func RedisDelete(rdb *redis.Client, key string) (int64, error)

func RedisGet

func RedisGet(rdb *redis.Client, key string) ([]byte, error)

func RedisSet

func RedisSet(rdb *redis.Client, key string, value interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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