File tree 1 file changed +8
-6
lines changed
components/cache/adapters
1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -55,23 +55,25 @@ helper method allows creating and configuring the Redis client class instance us
55
55
'redis://localhost'
56
56
);
57
57
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").
61
61
62
62
.. note ::
63
63
64
64
A `Data Source Name (DSN) `_ for this adapter must use either one of the following formats.
65
65
66
66
.. code-block :: text
67
67
68
- redis[s]://[pass@][ ip|host|socket[:port]][/db-index]
68
+ redis[s]://[ip|host|socket[:port]][/db-index]
69
69
70
70
.. code-block :: text
71
71
72
- redis[s]:[[user]:pass@]?[ ip|host|socket[:port]][¶ms]
72
+ redis[s]:[ip|host|socket[:port]][¶ms]
73
73
74
- Values for placeholders ``[user] ``, ``[:port] ``, ``[/db-index] `` and ``[¶ms] `` are optional.
74
+ Values for placeholders ``[:port] ``, ``[/db-index] `` and ``[¶ms] `` 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.
75
77
76
78
Below are common examples of valid DSNs showing a combination of available values::
77
79
You can’t perform that action at this time.
0 commit comments