Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d017788

Browse files
wilsonwrmichael-grunder
authored andcommitted
Update cluster.markdown
The "distribute" option for session.save_path is listed like "persistent," as if it is a boolean option. But this isn't the case. The code in redis_session.c#L893-L902 expects "distribute" to be a parameter to the "failover" option. The updated cluster.markdown reflects this.
1 parent 20ac847 commit d017788

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cluster.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ The save path for cluster based session storage takes the form of a PHP GET requ
181181
* _timeout (double)_: The amount of time phpredis will wait when connecting or writing to the cluster.
182182
* _read_timeout (double)_: The amount of time phpredis will wait for a result from the cluster.
183183
* _persistent_: Tells phpredis whether persistent connections should be used.
184-
* _distribute_: phpredis will randomly distribute session reads between masters and any attached slaves (load balancing).
185184
* _failover (string)_: How phpredis should distribute session reads between master and slave nodes.
186185
* _none_ : phpredis will only communicate with master nodes
187186
* _error_: phpredis will communicate with master nodes unless one fails, in which case an attempt will be made to read session information from a slave.
187+
* _distribute_: phpredis will randomly distribute session reads between masters and any attached slaves (load balancing).
188188
* _auth (string, empty by default)_: The password used to authenticate with the server prior to sending commands.
189189
* _stream (array)_: ssl/tls stream context options.

0 commit comments

Comments
 (0)