Procházet zdrojové kódy

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 před 9 roky
rodič
revize
d96abc2ae1
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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