You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Legacy compatibility view for PhpRedis' `OPT_SLAVE_FAILOVER`. It maps the legacy modes below onto Relay's `OPT_DISTRIBUTE` and `OPT_FAILOVER` settings.
141
+
142
+
| Value | Description |
143
+
| --- | --- |
144
+
|`FAILOVER_NONE`| Send commands to master nodes only. |
145
+
|`FAILOVER_ERROR`| Send readonly commands to slave nodes if master is unreachable. |
146
+
|`FAILOVER_DISTRIBUTE`| Always distribute readonly commands between master and slaves, at random. |
147
+
|`FAILOVER_DISTRIBUTE_SLAVES`| Always distribute readonly commands to the slaves, at random. |
148
+
149
+
This is not a true alias: some `OPT_DISTRIBUTE` and `OPT_FAILOVER` combinations have no legacy representation, and `getOption(OPT_SLAVE_FAILOVER)` returns `false` for those states. Prefer `OPT_DISTRIBUTE` and `OPT_FAILOVER` for new code.
150
+
138
151
## `OPT_AVAILABILITY_ZONE`
139
152
140
153
Sets a preferred availability zone so cluster reads can be routed to nodes in the same zone, reducing cross-AZ traffic.
0 commit comments