Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMissingAddresses = errors.New("redis-cluster: shard addresses is empty")
Functions ¶
Types ¶
type ClusterPool ¶
type ClusterPool struct {
*redis.ClusterClient
}
ClusterPool contains the redis cluster client.
type Options ¶
type Options struct { // Addrs contains the shards addresses in the form <host/domain>:<port> Addrs []string Username string // Password can be optional. Password string // MaxConnRetries is the max trials before giving up. MaxConnRetries int // PingDeadline represents the limit to // receive a ping response from each node. PingDeadline time.Duration }
Options contains only a subset of the internal configuration.
Click to show internal directories.
Click to hide internal directories.