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

FailoverClient with read-only support (#1199)

* FailoverClient with read-only support
This commit is contained in:
Martin Mlynář
2020-09-04 11:54:06 +02:00
committed by GitHub
parent 1e8d28243e
commit 49aac99f9d
2 changed files with 139 additions and 1 deletions

View File

@ -104,6 +104,9 @@ type Options struct {
// Enables read only queries on slave nodes.
readOnly bool
// Enables read only queries on redis replicas in sentinel mode
sentinelReadOnly bool
// TLS Config to use. When set TLS will be negotiated.
TLSConfig *tls.Config