From be10babe3c411cb0235afb20543ff768b8781178 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Mon, 18 Jul 2016 16:47:29 +0200 Subject: [PATCH] Document usage of unix socket connections Closes #21 --- README.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 53ce8dd..819260d 100644 --- a/README.rst +++ b/README.rst @@ -45,12 +45,13 @@ Or if you *must* use easy_install: Configuration ------------- -Your configuration should be declared within your Flask config. You can declare -via a Redis URL containing the database +Your configuration should be declared within your Flask config. Set the URL of your database like this: .. code-block:: python REDIS_URL = "redis://:password@localhost:6379/0" + # or + REDIS_URL = "unix://[:password]@/path/to/socket.sock?db=0" To create the redis instance within your application