redis_v6

package
v1.3.19 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendCmd

func AppendCmd(b []byte, cmd redis.Cmder) []byte

func Bytes

func Bytes(s string) []byte

Bytes converts string to byte slice.

func CmdString

func CmdString(cmd redis.Cmder) string

func CmdsString

func CmdsString(cmds []redis.Cmder) (string, string)

func String

func String(b []byte) string

String converts byte slice to string.

Types

type TraceClient

type TraceClient struct {
	*redis.Client
	// contains filtered or unexported fields
}

func WrapClient

func WrapClient(tracer aitracer.Tracer, client *redis.Client) *TraceClient

WrapClient create a wrapped redis.TraceClient with trace

func (*TraceClient) WithContext

func (c *TraceClient) WithContext(ctx context.Context) *redis.Client

WithContext is used to process redisCmd with trace. redisCmd should be executed by c2

Jump to

Keyboard shortcuts

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