redis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultRedis

func GetDefaultRedis() *redis.Client

func InitRedis

func InitRedis()

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 {
	*logit.Helper
}

func NewLoggerHook

func NewLoggerHook(helper *logit.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

Jump to

Keyboard shortcuts

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