1. Jason Moiron
  2. johnny-cache

Pull requests

#4 Merged
Repository
jezdez
Branch
default
Repository
jmoiron
Branch
default

Add redis cache backend with forced timeout

Author
  1. Jannis Leidel
Reviewers
Description

This backend forces the timeout of each key to 30 days and emulates the memcache backends' behavior. That should prevent an senseless filling up of the redis db.

Requires the django-redis-cache app.

  • Learn about pull requests

Comments (3)

  1. Alex Vidal

    panni: Yes, but some of us like to use redis as a mixed mode for permanent storage as well as a volatile cache. This fix would allow us to not worry about evicting keys that we actually want to keep.

    Also, if it's easily fixable (which it is) then shouldn't the library support it just like it does with the other backends? Instead of telling the user "by the way, you need to change your redis config for this to work properly"