Преглед изворни кода

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