Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Smart caching for Django using Celery to refresh cached items asynchronously.
Python Puppet Ruby
branch: master

This branch is 1 commit ahead, 78 commits behind codeinthehole:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
cacheback
docs
sandbox
tests
.gitignore
.travis.yml
AUTHORS
CHANGELOG.rst
LICENSE
MANIFEST.in
README.rst
TODO
Vagrantfile
makefile
requirements.txt
runtests.py
setup.py

README.rst

Cacheback

Asynchronous cache refreshing for Django

What does this library do?

It's an extensible caching library that refreshes stale cache items asynchronously using a Celery task. The key idea being that it's better to serve a stale item (and populate the cache asynchronously) than block the user in order to populate the cache synchronously.

Using this library, you can rework your views so that all reads are from cache - which can be a significant performance boost.

A corollary of this technique is that cache hammering can be handled simply and elegantly, avoiding sudden surges of expensive reads when a cached item becomes stale.

Do you have good docs?

Yup - over on readthedocs.org.

Do you have tests?

You betcha!

https://secure.travis-ci.org/codeinthehole/django-cacheback.png

Can I use this in my project?

Probably - subject to the MIT license.

I want to contribute!

Brilliant! Here are the contributing guidelines.

Something went wrong with that request. Please try again.