Skip to content

Added a note about using ":" in Redis passwords #7739

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions components/cache/cache_pools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,15 @@ helper allows creating a connection to a Redis server using a DSN configuration:

See the method's docblock for more options.

.. caution::

Redis connections don't support login + password credentials, but just a
password. This can produce undesired effects when the password contains a
``:`` character (e.g. ``foo:bar`` password would be wrongly parsed as ``foo``
login + ``bar`` password). The solution is to add a fake login to the
connection DSN. Instead of ``'redis://foo:bar@localhost'``, use
``'redis://__ignore_this__:foo:bar@localhost'``
Copy link
Member

@xabbuh xabbuh Apr 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing trailing dot


PDO & Doctrine DBAL Cache Adapter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down