Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A fault-tolerant pylibmc cache backend for Django

Project Description

A fault-tolerant pylibmc cache backend for Django


By default, a failed cache operation in Django is fatal and will raise a 500 error. In some cases, this might not be desirable behavior. This cache backend will catch failures and log them, but not raise an exception. A cache get that fails will appear to be a miss to the application.


pip install pylibmc django-ft-cache

Replace the existing pylibmc cache backend in your settings with 'django_ft_cache.FaultTolerantPyLibMCCache'. For example:

    'default': {
        'BACKEND': 'django_ft_cache.FaultTolerantPyLibMCCache',
        'LOCATION': [''],

Building Your Own

If you are already using a custom cache backend, a mixin is provided that should add this capability: django_ft_cache.FaultTolerantCacheMixin.


1.0.0 (2017-06-27)

  • Tests against Django 1.11 and Python 3.6
  • Bump to stable/production

0.9.0 (2016-02-01)

  • Tests against Django 1.9 and Python 3.4, 3.5

0.1.0 (2014-07-16)

  • Initial release

Release History

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(3.8 kB) Copy SHA256 Hash SHA256
Source None Jun 27, 2017

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers