Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Django cache backend based on Pinterest's pymemcache client.

Project description

https://travis-ci.org/django-pymemcache/django-pymemcache.svg?branch=master https://codecov.io/gh/django-pymemcache/django-pymemcache/branch/master/graph/badge.svg 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>,
        },
    },
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-pymemcache, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size django_pymemcache-1.0.0-py3-none-any.whl (10.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size django-pymemcache-1.0.0.tar.gz (7.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page