mirror of https://github.com/go-redis/redis.git
Merge pull request #2039 from jsievenpiper/sentinel-universal
feat: add support for acl sentinel auth in universal client
This commit is contained in:
commit
65e242e263
|
@ -25,6 +25,7 @@ type UniversalOptions struct {
|
||||||
|
|
||||||
Username string
|
Username string
|
||||||
Password string
|
Password string
|
||||||
|
SentinelUsername string
|
||||||
SentinelPassword string
|
SentinelPassword string
|
||||||
|
|
||||||
MaxRetries int
|
MaxRetries int
|
||||||
|
@ -114,6 +115,7 @@ func (o *UniversalOptions) Failover() *FailoverOptions {
|
||||||
DB: o.DB,
|
DB: o.DB,
|
||||||
Username: o.Username,
|
Username: o.Username,
|
||||||
Password: o.Password,
|
Password: o.Password,
|
||||||
|
SentinelUsername: o.SentinelUsername,
|
||||||
SentinelPassword: o.SentinelPassword,
|
SentinelPassword: o.SentinelPassword,
|
||||||
|
|
||||||
MaxRetries: o.MaxRetries,
|
MaxRetries: o.MaxRetries,
|
||||||
|
|
Loading…
Reference in New Issue