Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRedisClient ¶
func GetRedisClient(redisManager RedisManager) (redis.UniversalClient, error)
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)
Click to show internal directories.
Click to hide internal directories.