redis

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*redis.Client
	Tracer opentracing.Tracer
	Closer io.Closer
}

Client redis client with opentracing

func NewClient

func NewClient(config *config.RedisConfig) (*Client, error)

NewClient get redis connection

func NewClientFromEtcd

func NewClientFromEtcd(etcdCli *etcd.Client) (redisCli *Client, err error)

NewClientFromEtcd init redis from etcd config and watch config to update redis

func (*Client) ClientWithContext

func (c *Client) ClientWithContext(ctx context.Context) *Client

ClientWithContext ...

Jump to

Keyboard shortcuts

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