Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0ba6600

Browse files
committed
Minor tweak
1 parent 982a82f commit 0ba6600

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

components/cache/adapters/redis_adapter.rst

+7-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Redis Cache Adapter
88
:ref:`Symfony Cache configuration <cache-configuration-with-frameworkbundle>`
99
article if you are using it in a Symfony application.
1010

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.
1213

1314
Unlike the :doc:`APCu adapter </components/cache/adapters/apcu_adapter>`, and similarly to the
1415
: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
2122
adapter. Additionally, this adapter requires a compatible extension or library that implements
2223
``\Redis``, ``\RedisArray``, ``RedisCluster``, ``\Relay\Relay`` or ``\Predis``.
2324

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-
2925
This adapter expects a `Redis`_, `RedisArray`_, `RedisCluster`_, `Relay`_ or `Predis`_ instance to be
3026
passed as the first parameter. A namespace and default cache lifetime can optionally be passed
3127
as the second and third parameters::
@@ -66,6 +62,11 @@ helper method allows creating and configuring the Redis client class instance us
6662
'redis://localhost'
6763
);
6864

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+
6970
The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
7071
password and a database index. To enable TLS for connections, the scheme ``redis`` must be
7172
replaced by ``rediss`` (the second ``s`` means "secure").

0 commit comments

Comments
 (0)