redis_factory

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

type RedisClient struct {
}

func CreateRedis

func CreateRedis(nodes []string, poolSize int) *RedisClient

CreateRedis 初始化redis,自动识别是单机和集群模式

func (*RedisClient) GetConn

func (rc *RedisClient) GetConn() redis.Cmdable

GetConn 获取redis连接

Jump to

Keyboard shortcuts

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