Skip to content

[Cache] Add TLS scheme for Redis connection #14728

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 7, 2021
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
5 changes: 3 additions & 2 deletions components/cache/adapters/redis_adapter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,16 @@ helper method allows creating and configuring the Redis client class instance us
);

The DSN can specify either an IP/host (and an optional port) or a socket path, as well as a
password and a database index.
password and a database index. To enable TLS for connections, the scheme ``redis`` must be
replaced by ``rediss``.

.. note::

A `Data Source Name (DSN)`_ for this adapter must use the following format.

.. code-block:: text

redis://[pass@][ip|host|socket[:port]][/db-index]
redis[s]://[pass@][ip|host|socket[:port]][/db-index]

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

Expand Down