Documentation
¶
Index ¶
- Variables
- func ConnectToRedis(logger *utility.Logger, configDatabases config.Redis) *redis.Client
- type Redis
- func (rdb *Redis) PopFromQueue() (interface{}, error)
- func (rdb *Redis) PushToQueue(value interface{}) error
- func (rdb *Redis) RedisDb() *redis.Client
- func (rdb *Redis) RedisDelete(key string) (int64, error)
- func (rdb *Redis) RedisGet(key string) ([]byte, error)
- func (rdb *Redis) RedisSet(key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Ctx = context.Background() KeyName = "EmailQueue" )
Functions ¶
Types ¶
type Redis ¶
type Redis struct {
Red *redis.Client
}
func NewRedisConnection ¶
func NewRedisConnection(rdb *redis.Client) *Redis
func (*Redis) PopFromQueue ¶
func (*Redis) PushToQueue ¶
Click to show internal directories.
Click to hide internal directories.