浏览代码

Merge pull request #2821 from asfaltboy/documentation-clarification-memory-cache-backend

Clearly explain how to use memory cache backend
Omer Katz 9 年之前
父节点
当前提交
307b9116d9
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/configuration.rst

+ 3 - 0
docs/configuration.rst

@@ -396,6 +396,9 @@ Using multiple memcached servers:
 
 The "memory" backend stores the cache in memory only:
 
+.. code-block:: python
+
+    CELERY_RESULT_BACKEND = 'cache'
     CELERY_CACHE_BACKEND = 'memory'
 
 CELERY_CACHE_BACKEND_OPTIONS