redisx

package
v0.0.0-...-774e91b Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 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 Cfg

type Cfg struct {
	Address    []string // 集群连接地址
	Username   string   // 账号
	Password   string   // 密码
	DB         int      // 数据库建议使用默认0
	PoolSize   int      // 连接池大小,连接池中的连接的最大数量
	ClientName string   // 客户端名称
}

func Load

func Load(cli *clientv3.Client, env string) *Cfg

func (*Cfg) NewClient

func (c *Cfg) NewClient() *redis.Client

func (*Cfg) NewClusterClient

func (c *Cfg) NewClusterClient() *redis.ClusterClient

Jump to

Keyboard shortcuts

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