<p>heroku's addons for memcached are not explicitly compatible with Celery as result backends, but you can use them with django-celery-results </p>
<p>We created a custom cache for Celery and used [Memcached Cloud]( Our settings for this are looking like:</p>
<p>```
INSTALLED_APPS = [
# ...
'django_celery_results',
# ...
]</p>
<p>CACHES['celery'] = {
'BACKEND': 'django_bmemcached.memcached.BMemcached',
'LOCATION': MEMCACHED_SERVERS,
'OPTIONS': {
'username': MEMCACHED_USERNAME,
'password': MEMCACHED_PASSWORD,
}
}</p>
<p>CELERY_RESULT_BACKEND = 'django-cache'
CELERY_CACHE_BACKEND = 'celery'
```</p>
<p>Obs.: To use Memcached Cloud on Django you have to follow <a href="#django">these instructions</a></p>
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.