瀏覽代碼

Clearly explain how to use memory cache backend

Admittedly I am slow, but it shouldn't have taken me 10 minutes to figure out how to set up cache/memory (very useful for `unittest`s).
Pavel Savchenko 9 年之前
父節點
當前提交
1fac122c72
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/configuration.rst

+ 3 - 0
docs/configuration.rst

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