redis

package
v0.0.0-...-8b6722b Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisConfig

type RedisConfig struct {
	Url      string
	User     string `env:"USER" envDefault:"default"`
	Password string `env:"PASSWORD"`
	Host     string `env:"HOST"`
	Port     string `env:"PORT" envDefault:"14552"`
}

func (RedisConfig) Validate

func (redisConfig RedisConfig) Validate() error

type RedisService

type RedisService struct {
	// contains filtered or unexported fields
}

func NewRedisService

func NewRedisService(redisConfig RedisConfig, logger logr.Logger) (*RedisService, error)

func (*RedisService) Client

func (redisService *RedisService) Client() *redis.Client

func (*RedisService) Close

func (redisService *RedisService) Close() error

type RedisServicer

type RedisServicer interface {
	Client() *redis.Client
	Close() error
}

Jump to

Keyboard shortcuts

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