Skip to main content

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.

Source Distribution

django-pymemcache-1.0.0.tar.gz (7.5 kB view hashes)

Uploaded source

Built Distribution

django_pymemcache-1.0.0-py3-none-any.whl (10.9 kB view hashes)

Uploaded py3

Supported by

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