mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
Add AuthACL
This commit is contained in:
committed by
Vladimir Mihailenco
parent
64bb0b7f3a
commit
cf6cf7f450
@ -57,6 +57,7 @@ type ClusterOptions struct {
|
||||
|
||||
OnConnect func(*Conn) error
|
||||
|
||||
Username string
|
||||
Password string
|
||||
|
||||
MaxRetries int
|
||||
@ -130,6 +131,7 @@ func (opt *ClusterOptions) clientOptions() *Options {
|
||||
MaxRetries: opt.MaxRetries,
|
||||
MinRetryBackoff: opt.MinRetryBackoff,
|
||||
MaxRetryBackoff: opt.MaxRetryBackoff,
|
||||
Username: opt.Username,
|
||||
Password: opt.Password,
|
||||
readOnly: opt.ReadOnly,
|
||||
|
||||
|
Reference in New Issue
Block a user