redis

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

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

Go to latest
Published: Mar 1, 2025 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

Types

type Redis

type Redis struct {
	Red *redis.Client
}

func NewRedisConnection

func NewRedisConnection(rdb *redis.Client) *Redis

func (*Redis) PopFromQueue

func (rdb *Redis) PopFromQueue() (interface{}, error)

func (*Redis) PushToQueue

func (rdb *Redis) PushToQueue(value interface{}) error

func (*Redis) RedisDb

func (rdb *Redis) RedisDb() *redis.Client

func (*Redis) RedisDelete

func (rdb *Redis) RedisDelete(key string) (int64, error)

func (*Redis) RedisGet

func (rdb *Redis) RedisGet(key string) ([]byte, error)

func (*Redis) RedisSet

func (rdb *Redis) RedisSet(key string, value interface{}) error

Jump to

Keyboard shortcuts

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