mirror of
https://github.com/php-win-ext/phpredis.git
synced 2026-03-24 00:52:16 +01:00
better documentation for the $tlsOptions parameter of RedisCluster
This commit is contained in:
committed by
Michael Grunder
parent
0fe45d24d4
commit
8144db3743
@@ -22,8 +22,10 @@ $obj_cluster = new RedisCluster(NULL, ["host:7000", "host:7001"], 1.5, 1.5, true
|
||||
// Connect with cluster using password.
|
||||
$obj_cluster = new RedisCluster(NULL, ["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
|
||||
// Connect with cluster using TLS
|
||||
// last argument is an optional array with [SSL context options](https://www.php.net/manual/en/context.ssl.php) (TLS options)
|
||||
// If value is array (even empty), it will connect via TLS. If not, it will connect without TLS.
|
||||
// Note: If the seeds start with "ssl:// or tls://", it will connect to the seeds via TLS, but the subsequent connections will connect without TLS if this value is null. So, if your nodes require TLS, this value must be an array, even if empty.
|
||||
$obj_cluster = new RedisCluster(NULL, ["host:7000", "host:7001"], 1.5, 1.5, true, NULL, ["verify_peer" => false]);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user