mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
Clarify thread safety. Fixes #166.
This commit is contained in:
@ -54,8 +54,9 @@ func (opt *FailoverOptions) options() *Options {
|
||||
}
|
||||
}
|
||||
|
||||
// NewFailoverClient returns a Redis client with automatic failover
|
||||
// capabilities using Redis Sentinel.
|
||||
// NewFailoverClient returns a Redis client that uses Redis Sentinel
|
||||
// for automatic failover. It's safe for concurrent use by multiple
|
||||
// goroutines.
|
||||
func NewFailoverClient(failoverOpt *FailoverOptions) *Client {
|
||||
opt := failoverOpt.options()
|
||||
failover := &sentinelFailover{
|
||||
|
Reference in New Issue
Block a user