goredis

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 8 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"`
	DialTimeoutMillisecond  time.Duration `json:"dialTimeoutMillisecond"`
	ReadTimeoutMillisecond  time.Duration `json:"readTimeoutMillisecond"`
	WriteTimeoutMillisecond time.Duration `json:"writeTimeoutMillisecond"`
	PoolFIFO                bool          `json:"poolFIFO"`
	PoolSize                int           `json:"poolSize"`
	MinIdleConns            int           `json:"minIdleConns"`
	MaxIdleConns            int           `json:"maxIdleConns"`
	ConnMaxIdleTimeMinute   time.Duration `json:"connMaxIdleTimeMinute"`
}

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 Manager added in v0.1.2

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

func NewManager added in v0.1.2

func NewManager(configPath string, logger *log.Helper) *Manager

func (*Manager) Client added in v0.1.2

func (m *Manager) Client() *redis.Client

Jump to

Keyboard shortcuts

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