Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Latest commit

 

History

History
46 lines (35 loc) · 1 KB

README.md

File metadata and controls

46 lines (35 loc) · 1 KB

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