Skip to content

Commit

Permalink
added RESP3 guide, fixed a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
amirreza8002 committed Sep 9, 2024
1 parent d3a72cb commit b6e4dd2
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion docs/source/configure/advanced_configurations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Now, lets look at other ways to configure this:
* valkey://[[username]:[password]]@localhost:6379
* valkeys://[[username]:[password]@localhost:6379
* unix://[[username]:[password]@/path/to/socket.sock
* unix://[username@]/path/to/socket.sock?db=0[&password=password]


These three URL schemes are supported:
* ``valkey://``: creates a normal TCP socket connection
Expand All @@ -47,8 +49,23 @@ Specify a database number:

you can specify a database number in your URL like this:
* A ``db`` querystring option, e.g. ``valkey://localhost:6379?db=0``
* if using the ``valkey://`` scheme, the path argumentof the URL, e.g. ``valkey://localhost:6379/0``
* if using the ``valkey://`` scheme, the path argument of the URL, e.g. ``valkey://localhost:6379/0``


RESP3 support
#############

to enable RESP3, like other connections you can configure your server like this:

.. code-block:: python
CACHE = {
"default": {
...
"LOCATION": "valkey://django@localhost:6379?protocol=3",
}
}
}
Configure as session backend
############################
Expand Down

0 comments on commit b6e4dd2

Please sign in to comment.