File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,12 @@ Command
64
64
- ``cake server `` now supports a ``--frankenphp `` option that will start the
65
65
development server with `FrankenPHP <https://frankenphp.dev/ >`__.
66
66
67
+ Cache
68
+ -----
69
+
70
+ - Added Redis Cluster support to ``RedisEngine ``. Configure the ``cluster `` option
71
+ with an array of server addresses to enable cluster mode.
72
+
67
73
Console
68
74
-------
69
75
Original file line number Diff line number Diff line change @@ -173,10 +173,33 @@ RedisEngine uses the following engine specific options:
173
173
* ``ssl_key `` The ssl private key used for TLS connections.
174
174
* ``ssl_ca `` The ssl certificate authority file for TLS connections.
175
175
* ``ssl_cert `` The ssl certificate used for TLS connections.
176
+ * ``cluster `` Array of cluster server addresses for Redis Cluster support.
176
177
177
178
.. versionadded :: 5.1.0
178
179
TLS connections were added in 5.1
179
180
181
+ .. versionadded :: 5.3.0
182
+ Redis Cluster support was added in 5.3
183
+
184
+ Redis Cluster Configuration
185
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
186
+
187
+ To use Redis Cluster, configure the ``cluster `` option with an array of server addresses::
188
+
189
+ Cache::setConfig('redis_cluster', [
190
+ 'className' => 'Redis',
191
+ 'duration' => '+1 hours',
192
+ 'prefix' => 'cake_redis_',
193
+ 'cluster' => [
194
+ '127.0.0.1:7000',
195
+ '127.0.0.1:7001',
196
+ '127.0.0.1:7002',
197
+ ]
198
+ ]);
199
+
200
+ When using Redis Cluster, the ``host `` and ``port `` options are ignored. The engine will
201
+ automatically handle key distribution and failover across the cluster nodes.
202
+
180
203
MemcacheEngine Options
181
204
----------------------
182
205
You can’t perform that action at this time.
0 commit comments