redis

package
v1.2.1-0...-a02ee64 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Password *string `env:"REDIS_PASSWORD" envDefault:""`
	Username *string `env:"REDIS_USERNAME" envDefault:""`
	PoolSize *int    `env:"REDIS_POOL_SIZE"`
	Db       *int    `env:"REDIS_DB" envDefault:"0"`
	Clusters *URLs   `env:"REDIS_CLUSTERS,required"`
}

type Redis

type Redis struct {
	redis.UniversalClient
	// contains filtered or unexported fields
}

func InitRedis

func InitRedis(conf Config) *Redis

type URLs

type URLs []string

func (*URLs) UnmarshalText

func (r *URLs) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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