From 6b8d682ea51e5c813e2b32ec6c838358aa8997ad Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Sat, 4 Feb 2023 12:47:13 +0200 Subject: [PATCH] Update cluster.md --- cluster.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cluster.md b/cluster.md index 3fd9fb1..484bc76 100644 --- a/cluster.md +++ b/cluster.md @@ -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. \ No newline at end of file +Note: This is disabled by default since it may significantly reduce the session lifetime for long-running scripts. Redis server version 6.2+ required.