mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
sentinel: add comment.
This commit is contained in:
@ -84,6 +84,8 @@ func (opt *FailoverOptions) options() *options {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewFailoverClient returns Redis client with automatic failover
|
||||||
|
// capabilities using Redis Sentinel.
|
||||||
func NewFailoverClient(failoverOpt *FailoverOptions) *Client {
|
func NewFailoverClient(failoverOpt *FailoverOptions) *Client {
|
||||||
opt := failoverOpt.options()
|
opt := failoverOpt.options()
|
||||||
failover := &sentinelFailover{
|
failover := &sentinelFailover{
|
||||||
|
Reference in New Issue
Block a user