Skip to main content

Caching library for Django that uses Celery or RQ to refresh cache items asynchronously

Project description

What does this library do?

It’s an extensible caching library that refreshes stale cache items asynchronously using a Celery or rq task (utilizing django-rq). The key idea being that it’s better to serve a stale item (and populate the cache asynchronously) than block the response process 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 support Python 3?

Pythons 2.7, 3.3, 3.4, 3.5 and PyPy are supported.

Django versions 1.5 to 1.9 are also supported.

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.

Project details


Download files

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

Source Distribution

django-cacheback-1.1.tar.gz (10.8 kB view details)

Uploaded Source

File details

Details for the file django-cacheback-1.1.tar.gz.

File metadata

File hashes

Hashes for django-cacheback-1.1.tar.gz
Algorithm Hash digest
SHA256 ba7dc1525de6b6f44d13f6e5b6b93ca7a9ef0ca560315872fe40f044b7b59e95
MD5 1f4a93f4dedd82ee776cae3c4ffa868a
BLAKE2b-256 828aa0bd70e49e74d1d617a18d931048a3e8e27c0d5d462a29e15e2be95a1037

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page