Caching library for Django that uses Celery or RQ to refresh cache items asynchronously
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.
Python 3.6+ is supported. Django 2.0+ is supported.
Can I use this in my project?
Probably - subject to the MIT license.
I want to contribute!
Brilliant! Here are the contributing guidelines.
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size django_cacheback-3.0.0-py3-none-any.whl (12.6 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
|Filename, size django-cacheback-3.0.0.tar.gz (11.2 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for django_cacheback-3.0.0-py3-none-any.whl