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.8 to 1.11 are 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.3.1.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

django_cacheback-1.3.1-py2.py3-none-any.whl (14.0 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-cacheback-1.3.1.tar.gz
Algorithm Hash digest
SHA256 01f10f002499ffe8e0d8b46071ae279452cc27bd1ebde20ecffbc9010c99d14c
MD5 729823b7af354c7d2aae9faa5920748b
BLAKE2b-256 a45a1c29be9b84c7a5ee59c0cdc721527517e14281d0fbc9f39a8bd4ec125753

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cacheback-1.3.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c1dc0895dae4d28bcd9af9c5023f2e2715089d93b148a4790143a71d67f5885
MD5 09bc751fd7ecf9c6c29b6acbfc0e54b7
BLAKE2b-256 c50a5d80c1b602369914f6855d21266198d89ec1951c68df72e456ecf0795e6c

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