redis_cli

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbType                  = "redis"
	SpanKind                = ext.SpanKindEnum("redis-client")
	MaxPipelineNameCmdCount = 3
	DefaultRWTimeout        = time.Second
)

Variables

View Source
var Name = "redis"

Functions

func GetCfg

func GetCfg() map[string]ClientCfg

func GetClient

func GetClient(ctx context.Context, prefix string, options ...Option) *redis.Client

Types

type ClientCfg

type ClientCfg = redis.Options

func GetDefaultCfg

func GetDefaultCfg() ClientCfg

type Option

type Option func(options *redis.Options)

Jump to

Keyboard shortcuts

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