@@ -8,7 +8,8 @@ Redis Cache Adapter
8
8
:ref: `Symfony Cache configuration <cache-configuration-with-frameworkbundle >`
9
9
article if you are using it in a Symfony application.
10
10
11
- This adapter stores the values in-memory using one (or more) `Redis server `_ instances.
11
+ This adapter stores the values in-memory using one (or more) `Redis server `_
12
+ of `Valkey `_ server instances.
12
13
13
14
Unlike the :doc: `APCu adapter </components/cache/adapters/apcu_adapter >`, and similarly to the
14
15
:doc: `Memcached adapter </components/cache/adapters/memcached_adapter >`, it is not limited to the current server's
@@ -21,11 +22,6 @@ to utilize a cluster of servers to provide redundancy and/or fail-over is also a
21
22
adapter. Additionally, this adapter requires a compatible extension or library that implements
22
23
``\Redis ``, ``\RedisArray ``, ``RedisCluster ``, ``\Relay\Relay `` or ``\Predis ``.
23
24
24
- .. note ::
25
-
26
- This adapter also works with `Valkey `_ servers and as of Symfony 7.3, you can use the ``valkey[s]: `` schemes
27
- instead of the ``redis[s]: `` ones in your DSNs.
28
-
29
25
This adapter expects a `Redis `_, `RedisArray `_, `RedisCluster `_, `Relay `_ or `Predis `_ instance to be
30
26
passed as the first parameter. A namespace and default cache lifetime can optionally be passed
31
27
as the second and third parameters::
@@ -66,6 +62,11 @@ helper method allows creating and configuring the Redis client class instance us
66
62
'redis://localhost'
67
63
);
68
64
65
+ .. versionadded :: 7.3
66
+
67
+ Starting in Symfony 7.3, when using Valkey servers you can use the
68
+ ``valkey[s]: `` scheme instead of the ``redis[s]: `` one in your DSNs.
69
+
69
70
The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
70
71
password and a database index. To enable TLS for connections, the scheme ``redis `` must be
71
72
replaced by ``rediss `` (the second ``s `` means "secure").
0 commit comments