1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-28 06:42:00 +03:00

Make readOnly a private field so that only cluster client can use it

This commit is contained in:
wenjun.yan
2017-07-25 10:35:41 +09:00
parent e8e77ae5e4
commit 4e1d2a01db
4 changed files with 7 additions and 9 deletions

View File

@ -73,7 +73,7 @@ type Options struct {
IdleCheckFrequency time.Duration
// Enables read only queries on slave nodes.
ReadOnly bool
readOnly bool
// TLS Config to use. When set TLS will be negotiated.
TLSConfig *tls.Config