Skip to content

Commit a2c8464

Browse files
committed
[Cache] Mention ttaht user/password are not supported for Redis DSN
1 parent 14c83db commit a2c8464

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

components/cache/adapters/redis_adapter.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,25 @@ helper method allows creating and configuring the Redis client class instance us
5555
'redis://localhost'
5656
);
5757

58-
The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
59-
password and a database index. To enable TLS for connections, the scheme ``redis`` must be
60-
replaced by ``rediss`` (the second ``s`` means "secure").
58+
The DSN can specify either an IP/host (and an optional port) or a socket path, as
59+
well as a database index. To enable TLS for connections, the scheme ``redis`` must
60+
be replaced by ``rediss`` (the second ``s`` means "secure").
6161

6262
.. note::
6363

6464
A `Data Source Name (DSN)`_ for this adapter must use either one of the following formats.
6565

6666
.. code-block:: text
6767
68-
redis[s]://[pass@][ip|host|socket[:port]][/db-index]
68+
redis[s]://[ip|host|socket[:port]][/db-index]
6969
7070
.. code-block:: text
7171
72-
redis[s]:[[user]:pass@]?[ip|host|socket[:port]][&params]
72+
redis[s]:[ip|host|socket[:port]][&params]
7373
74-
Values for placeholders ``[user]``, ``[:port]``, ``[/db-index]`` and ``[&params]`` are optional.
74+
Values for placeholders ``[:port]``, ``[/db-index]`` and ``[&params]`` are optional.
75+
When using Symfony 5.x, you can't define a user or password for the connection
76+
DSN. That feature was added in the following Symfony versions.
7577

7678
Below are common examples of valid DSNs showing a combination of available values::
7779

0 commit comments

Comments
 (0)