skip to navigation
skip to content

django-ft-cache 0.1.0

A fault-tolerant pylibmc cache backend for Django

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.


0.1.0 (2014-07-16)

  • Initial release
File Type Py Version Uploaded on Size
django-ft-cache-0.1.0.tar.gz (md5) Source 2014-07-17 3KB
  • Downloads (All Versions):
  • 49 downloads in the last day
  • 334 downloads in the last week
  • 1455 downloads in the last month