From b6e4dd25889011d268013443578ec5c786bdfb41 Mon Sep 17 00:00:00 2001 From: amirreza Date: Mon, 9 Sep 2024 14:24:10 +0330 Subject: [PATCH] added RESP3 guide, fixed a typo --- .../configure/advanced_configurations.rst | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/source/configure/advanced_configurations.rst b/docs/source/configure/advanced_configurations.rst index c51f2fb..7f13ee9 100644 --- a/docs/source/configure/advanced_configurations.rst +++ b/docs/source/configure/advanced_configurations.rst @@ -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 @@ -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 ############################