@@ -25,9 +25,9 @@ to utilize a cluster of servers to provide redundancy and/or fail-over is also a
25
25
26
26
**Requirements: ** At least one `Redis server `_ must be installed and running to use this
27
27
adapter. Additionally, this adapter requires a compatible extension or library that implements
28
- ``\Redis ``, ``\RedisArray ``, ``RedisCluster ``, or ``\Predis ``.
28
+ ``\Redis ``, ``\RedisArray ``, ``RedisCluster ``, `` \Relay\Relay `` or ``\Predis ``.
29
29
30
- This adapter expects a `Redis `_, `RedisArray `_, `RedisCluster `_, or `Predis `_ instance to be
30
+ This adapter expects a `Redis `_, `RedisArray `_, `RedisCluster `_, ` Relay `_ or `Predis `_ instance to be
31
31
passed as the first parameter. A namespace and default cache lifetime can optionally be passed
32
32
as the second and third parameters::
33
33
@@ -47,6 +47,10 @@ as the second and third parameters::
47
47
$defaultLifetime = 0
48
48
);
49
49
50
+ .. versionadded :: 6.3
51
+
52
+ Support for `Relay `_ was introduced in Symfony 6.3.
53
+
50
54
Configure the Connection
51
55
------------------------
52
56
@@ -165,10 +169,14 @@ array of ``key => value`` pairs representing option names and their respective v
165
169
Available Options
166
170
~~~~~~~~~~~~~~~~~
167
171
172
+ .. versionadded :: 6.3
173
+
174
+ ``\Relay\Relay `` support was introduced in Symfony 6.3.
175
+
168
176
``class `` (type: ``string ``, default: ``null ``)
169
- Specifies the connection library to return, either ``\Redis `` or ``\Predis\Client ``.
170
- If none is specified, it will return `` \Redis `` if the `` redis `` extension is
171
- available, and ``\Predis\Client `` otherwise . Explicitly set this to ``\Predis\Client `` for Sentinel if you are
177
+ Specifies the connection library to return, either ``\Redis ``, `` \Relay\Relay `` or ``\Predis\Client ``.
178
+ If none is specified, fallback value is in following order, depending which one is available first:
179
+ `` \Redis ``, `` \Relay\Relay ``, ``\Predis\Client ``. Explicitly set this to ``\Predis\Client `` for Sentinel if you are
172
180
running into issues when retrieving master information.
173
181
174
182
``persistent `` (type: ``int ``, default: ``0 ``)
@@ -258,6 +266,7 @@ Read more about this topic in the official `Redis LRU Cache Documentation`_.
258
266
.. _`Redis` : https://github.com/phpredis/phpredis
259
267
.. _`RedisArray` : https://github.com/phpredis/phpredis/blob/master/arrays.markdown#readme
260
268
.. _`RedisCluster` : https://github.com/phpredis/phpredis/blob/master/cluster.markdown#readme
269
+ .. _`Relay` : https://relay.so/
261
270
.. _`Predis` : https://packagist.org/packages/predis/predis
262
271
.. _`Predis Connection Parameters` : https://github.com/nrk/predis/wiki/Connection-Parameters#list-of-connection-parameters
263
272
.. _`TCP-keepalive` : https://redis.io/topics/clients#tcp-keepalive
0 commit comments