goredis

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: MIT Imports: 9 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 {
	Host       string `json:"host"`
	Port       int    `json:"port"`
	DB         int    `json:"db"`
	Username   string `json:"username"`
	Password   string `json:"password"`
	MaxRetries int    `json:"maxRetries"`
}

type LoggerHook

type LoggerHook struct {
	*log.Helper
}

func NewLoggerHook

func NewLoggerHook(helper *log.Helper) *LoggerHook

func (*LoggerHook) DialHook

func (l *LoggerHook) DialHook(next redis.DialHook) redis.DialHook

func (*LoggerHook) ProcessHook

func (l *LoggerHook) ProcessHook(next redis.ProcessHook) redis.ProcessHook

func (*LoggerHook) ProcessPipelineHook

func (l *LoggerHook) ProcessPipelineHook(next redis.ProcessPipelineHook) redis.ProcessPipelineHook

type RedisManager

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

func NewRedisManager

func NewRedisManager(configPath string, logger *log.Helper) *RedisManager

func (*RedisManager) Client

func (r *RedisManager) Client() *redis.Client

Jump to

Keyboard shortcuts

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