redis

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *Config) (*redis.Client, error)

New creates a new Redis client from configuration

Types

type Config

type Config struct {
	Address string `yaml:"address"`
	Prefix  string `yaml:"prefix"`
}

func (*Config) PrefixKey added in v0.0.5

func (c *Config) PrefixKey(key string) string

PrefixKey adds the configured prefix to a Redis key

func (*Config) PrefixQueue added in v0.0.5

func (c *Config) PrefixQueue(queue string) string

PrefixQueue adds the configured prefix to an Asynq queue name

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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