Skip to content
A django cache backend to use bmemcached module which supports memcached binary protocol with authentication.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
django_bmemcached Don't disconnect from memcache on every request Dec 2, 2015
tests Flake 8 fixes Oct 5, 2015
.travis-runs-tests.sh Flake 8 fixes Oct 5, 2015
.travis.yml Test against newer versions of Python (#12) Jan 14, 2019
LICENSE added license Dec 15, 2011
README.md added travis image of build status Feb 28, 2012
requirements_test.txt Removed python-binary-memcached from requirents, so as to add to inst… May 11, 2013
setup.py

README.md

Build Status

Django-BMemcached

A django cache backend to use [bmemcached] (https://github.com/jaysonsantos/python-binary-memcached) module which supports memcached binary protocol with authentication.

Installing

Use pip:

pip install django-bmemcached

Using

In your settings.py add bmemcached as backend.

CACHES = {
    'default': {
        'BACKEND': 'django_bmemcached.memcached.BMemcached',
        'LOCATION': 'your_server:port',
        'OPTIONS': {
            'username': 'user',
            'password': 'password'
        }
    }
}

Using in Heroku

Just add bmemcached as backend. It will work automagically if you have added memcached as Heroku addon.

CACHES = {
    'default': {
        'BACKEND': 'django_bmemcached.memcached.BMemcached'
    }
}

Testing

DJANGO_SETTINGS_MODULE=tests.settings nosetests
You can’t perform that action at this time.