Tech Insights· github.com
heroku's addons for memcached are not explicitly compatible with Celery as result backends, but you can use them with django-celery-results
We created a custom cache for Celery and used [Memcached Cloud]( Our settings for this are looking like:
``` INSTALLED_APPS = [ # ... 'django_celery_results', # ... ]
CACHES['celery'] = { 'BACKEND': 'django_bmemcached.memcached.BMemcached', 'LOCATION': MEMCACHED_SERVERS, 'OPTIONS': { 'username': MEMCACHED_USERNAME, 'password': MEMCACHED_PASSWORD, } }
CELERY_RESULT_BACKEND = 'django-cache' CELERY_CACHE_BACKEND = 'celery' ```
Obs.: To use Memcached Cloud on Django you have to follow these instructions
Shared by
- Celery
- Django
- Heroku
- Memcached



