A django cache backend to use [bmemcached] (https://github.com/jaysonsantos/python-binary-memcached) module which supports memcached binary protocol with authentication.
Use pip:
pip install django-bmemcached
In your settings.py add bmemcached as backend.
CACHES = {
'default': {
'BACKEND': 'django_bmemcached.memcached.BMemcached',
'LOCATION': 'your_server:port',
'OPTIONS': {
'username': 'user',
'password': 'password'
}
}
}
Just add bmemcached as backend. It will work automagically if you have added memcached as Heroku addon.
CACHES = {
'default': {
'BACKEND': 'django_bmemcached.memcached.BMemcached'
}
}
DJANGO_SETTINGS_MODULE=tests.settings nosetests