浏览代码

Merge branch 'master' of github.com:celery/celery

Ask Solem 9 年之前
父节点
当前提交
acb6db9aa5
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      docs/getting-started/brokers/redis.rst

+ 5 - 0
docs/getting-started/brokers/redis.rst

@@ -38,6 +38,11 @@ If a unix socket connection should be used, the URL needs to be in the format::
 
     redis+socket:///path/to/redis.sock
 
+Specifying a different database while using a unix socket is possible by adding the 
+`virtual_host` parameter to the URL::
+
+    redis+socket:///path/to/redis.sock?virtual_host=db_number
+
 .. _redis-visibility_timeout:
 
 Visibility Timeout