redisutil

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRedisClient

func GetRedisClient(redisManager RedisManager) (redis.UniversalClient, error)

func ToRedisConfig

func ToRedisConfig(cfg *configpb.Redis) *redispkg.Config

ToRedisConfig ...

Types

type RedisManager

type RedisManager interface {
	Enable() bool
	GetClient() (redis.UniversalClient, error)
	Close() error
}

func NewRedisManager

func NewRedisManager(conf *configpb.Redis) (RedisManager, error)

func NewSingletonRedisManager

func NewSingletonRedisManager(conf *configpb.Redis) (RedisManager, error)

Jump to

Keyboard shortcuts

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