1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-31 05:04:23 +03:00

Added support for universal client

This commit is contained in:
Dimitrij Denissenko
2017-02-17 10:12:06 +00:00
parent 43b61bd319
commit 30412d7652
5 changed files with 214 additions and 5 deletions

View File

@ -34,7 +34,8 @@ type ClusterOptions struct {
// Following options are copied from Options struct.
Password string
MaxRetries int
Password string
DialTimeout time.Duration
ReadTimeout time.Duration
@ -63,8 +64,9 @@ func (opt *ClusterOptions) clientOptions() *Options {
const disableIdleCheck = -1
return &Options{
Password: opt.Password,
ReadOnly: opt.ReadOnly,
MaxRetries: opt.MaxRetries,
Password: opt.Password,
ReadOnly: opt.ReadOnly,
DialTimeout: opt.DialTimeout,
ReadTimeout: opt.ReadTimeout,