Documentation ¶
Index ¶
- Variables
- func CheckRedisRole(c redis.Conn, t time.Time) error
- func GetRedsyncLockPool(host string, port int, user string, password string) redsyncredis.Pool
- func NewRedisAlone(addr string, password string) redis.Conn
- func NewRedisClient(addr []string, password string, typ int) redis.Conn
- func NewRedisCluster(addr []string, password string) redis.Conn
- func NewRedisSentinel(redisAddrs []string, password string) redis.Conn
- func NewRedsyncLockPool(host string, port int, user string, password string) redsyncredis.Pool
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisConnPool *redis.Pool
Functions ¶
func GetRedsyncLockPool ¶ added in v1.3.6
获取分布式redis锁的 pool
func NewRedisClient ¶
redis 有三种模式 1 alone, 2 sentinel, 3 cluster
func NewRedsyncLockPool ¶ added in v1.3.6
分布式锁
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.