Skip to content

Commit 141e540

Browse files
authored
update wording
1 parent 6beb697 commit 141e540

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/1.x/options.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ Legacy compatibility view for PhpRedis' `OPT_SLAVE_FAILOVER`. It maps the legacy
141141

142142
| Value | Description |
143143
| --- | --- |
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. |
144+
| `FAILOVER_NONE` | Send commands to primary nodes only. |
145+
| `FAILOVER_ERROR` | Send readonly commands to replica nodes if primary is unreachable. |
146+
| `FAILOVER_DISTRIBUTE` | Always distribute readonly commands between primary and replicas, at random. |
147+
| `FAILOVER_DISTRIBUTE_SLAVES` | Always distribute readonly commands to the replicas, at random. |
148148

149149
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.
150150

0 commit comments

Comments
 (0)