Skip to content
All lessons

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

Read on github.com
  • Celery
  • Django
  • Heroku
  • Memcached

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us