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

image

image

image

image

image

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