Skip to content

A Django cache backend built in Pinterest's pymemcache.

License

Notifications You must be signed in to change notification settings

django-pymemcache/django-pymemcache

Repository files navigation

django-pymemcache

https://travis-ci.org/django-pymemcache/django-pymemcache.svg?branch=master https://img.shields.io/pypi/v/django-pymemcache.svg?style=flat

https://img.shields.io/pypi/djversions/django-pymemcache.svg?style=flat

https://img.shields.io/pypi/pyversions/django-pymemcache.svg?style=flat

django-pymemcache is a Django cache backend that uses Pinterest's pymemcache library as the backend.

Installation

pip install django-pymemcache

Usage

Simply use it as any other Cache backend, e.g.

CACHES = {
    'default': {
        'BACKEND': 'djpymemcache.backend.PyMemcacheCache',
        'LOCATION': [
           '127.0.0.1:11211',
        ],
        'OPTIONS': {
            'serializer': <your_serializer>,
            'deserializer': <your_deserializer>,
        },
    },
}

Issues

https://github.com/django-pymemcache/django-pymemcache/issues