mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
Update cluster.md
This commit is contained in:
@@ -21,6 +21,10 @@ $obj_cluster = new RedisCluster(NULL, Array("host:7000", "host:7001"), 1.5, 1.5,
|
||||
|
||||
// Connect with cluster using password.
|
||||
$obj_cluster = new RedisCluster(NULL, Array("host:7000", "host:7001"), 1.5, 1.5, true, "password");
|
||||
|
||||
// Connect with cluster using SSL/TLS
|
||||
// last argument is an array with [SSL context](https://www.php.net/manual/en/context.ssl.php) options
|
||||
$obj_cluster = new RedisCluster(NULL, Array("host:7000", "host:7001"), 1.5, 1.5, true, NULL, Array("verify_peer" => false));
|
||||
```
|
||||
|
||||
#### Loading a cluster configuration by name
|
||||
@@ -201,4 +205,4 @@ To enable, set the following INI variable:
|
||||
```ini
|
||||
redis.session.early_refresh = 1
|
||||
```
|
||||
Note: This is disabled by default since it may significantly reduce the session lifetime for long-running scripts. Redis server version 6.2+ required.
|
||||
Note: This is disabled by default since it may significantly reduce the session lifetime for long-running scripts. Redis server version 6.2+ required.
|
||||
|
||||
Reference in New Issue
Block a user