Skip to content

Commit

Permalink
use the stable docs for redis, and I hope this is a good example (#370)
Browse files Browse the repository at this point in the history
Co-authored-by: benbrowning <ben@skillshark.com>
  • Loading branch information
bbrowning918 and benbrowning committed Sep 4, 2023
1 parent ba6dfcd commit 1e9b738
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,22 @@ Possible options for ``CONFIG`` are listed below.
``hosts``
~~~~~~~~~

The server(s) to connect to, as either URIs, ``(host, port)`` tuples, or dicts conforming to `redis Connection <https://redis-py.readthedocs.io/en/v4.3.3/connections.html#redis.connection.Connection>`_.
The server(s) to connect to, as either URIs, ``(host, port)`` tuples, or dicts conforming to `redis Connection <https://redis-py.readthedocs.io/en/stable/connections.html#async-client>`_.
Defaults to ``redis://localhost:6379``. Pass multiple hosts to enable sharding,
but note that changing the host list will lose some sharded data.

SSL connections that are self-signed (ex: Heroku):

.. code-block:: python
{
"hosts":[
"address": "rediss://user@host:port", // "REDIS_TLS_URL"
"ssl_cert_reqs": None
]
}


Sentinel connections require dicts conforming to:

.. code-block::
Expand Down

0 comments on commit 1e9b738

Please sign in to comment.