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 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.4 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.0.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

django_cacheback-1.0-py2.py3-none-any.whl (12.2 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-cacheback-1.0.tar.gz
Algorithm Hash digest
SHA256 8feaa8df6cbe23e1fca5d858f518a235442a8ddc4aefb5be0846692c69d65a8e
MD5 97c4b22d018c3e8060808c59181febd4
BLAKE2b-256 f78f62e8b45d735d525a96aaf4ca84490e274ec8faea7fa786806447bc11d3a1

See more details on using hashes here.

File details

Details for the file django_cacheback-1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_cacheback-1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2fc21e0ed78ee8e4cc07ac2c5936b27f956c99c81fc4f965e96fb27171180819
MD5 e0f5a179b4b86ce963cbaca14a10798e
BLAKE2b-256 d4d3aedad14c7d0bc5ed122b59e6228d6ea8abc323ad2dc05d284af2185473a9

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