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.
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.
Can I use this in my project?
Probably - subject to the MIT license.
I want to contribute!
Brilliant! Here are the contributing guidelines.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|File Name & Checksum SHA256 Checksum Help||Version||File Type||Upload Date|
|django_cacheback-1.3.2-py2.py3-none-any.whl (14.1 kB) Copy SHA256 Checksum SHA256||3.5||Wheel||Jun 12, 2017|
|django-cacheback-1.3.2.tar.gz (11.7 kB) Copy SHA256 Checksum SHA256||–||Source||Jun 12, 2017|