redispool

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EventDestroyPrefix = "Destroy_Redis"

Functions

func GetPool

func GetPool(addr, password string, poolSize, maxIdle, idleTimeout, indexDb int, wl winner_logger.Logger, tracing bool) (*redis.Client, error)

初始化redis 连接池

func NewRedisTracingHook added in v1.0.1

func NewRedisTracingHook(logger winner_logger.Logger) redis.Hook

Types

type RedisHookSpan added in v1.0.1

type RedisHookSpan string

type TracingHook added in v1.0.1

type TracingHook struct{}

func (TracingHook) AfterProcess added in v1.0.1

func (TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error

func (TracingHook) AfterProcessPipeline added in v1.0.1

func (TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error

func (TracingHook) BeforeProcess added in v1.0.1

func (TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)

func (TracingHook) BeforeProcessPipeline added in v1.0.1

func (TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)

Jump to

Keyboard shortcuts

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