Skip to content

jarshwah/django-redis-cache

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Redis Django Cache Backend

A simple Redis cache backend for Django.

Notes

This cache backend requires the redis-py Python client library for communicating with the Redis server.

Redis writes to disk asynchronously so there is a slight chance of losing some data, but for most purposes this is acceptable.

Usage

  1. Run python setup.py install to install, or place redis_cache on your Python path.
  2. Modify your Django settings to use redis_cache :

    CACHE_BACKEND = 'redis_cache.cache://<host>:<port>'
  3. (Optional) To suppress cache errors, so that warnings are generated instead, add the query string :

    ?fail_silently=1

    so the CACHE_BACKEND url looks like so :

    CACHE_BACKEND = 'redis_cache.cache://<host>:<port>?fail_silently=1'

About

A Redis cache backend for django

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%