Skip to main content

Caching library for Django that uses Celery 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 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.

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-0.4.tar.gz (7.3 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for django-cacheback-0.4.tar.gz
Algorithm Hash digest
SHA256 8a3a9ce5b946c88a435601e290666e079051ddf45935ce2474baf7174e9dc2e7
MD5 23ccec9a7f7fd13641f579f03fa6558a
BLAKE2b-256 4052cdcbc86bb71a82e94ec9c0de79169da9c6b4202ae4b96f3ee5984ca94481

See more details on using hashes here.

Supported by

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