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.
Supported versions
Python 3.6+ is supported. Django 2.0+ is supported.
Do you have tests?
You betcha!
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-cacheback-3.0.0.tar.gz
.
File metadata
- Download URL: django-cacheback-3.0.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.9.4-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fdc5bf18457333d11bbad0b5f809e5e3969bdf6b24ff36d0c291600c47ac608f |
|
MD5 | 54c7ae1c6eccc72a5e4c0d6e6392a3e6 |
|
BLAKE2b-256 | 9b961989831531cf22c206ceaba8cf903ae76949d70952c34b1bc7945b9259d0 |
File details
Details for the file django_cacheback-3.0.0-py3-none-any.whl
.
File metadata
- Download URL: django_cacheback-3.0.0-py3-none-any.whl
- Upload date:
- Size: 12.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.4 CPython/3.8.6 Linux/5.9.4-arch1-1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fcce22adfd4d3eb78d6bce68f894f712dc9bf15da9a67f3618d250917e8b712 |
|
MD5 | 0f1ce0c0d7cfc4ceb61874d6fe242a0d |
|
BLAKE2b-256 | 606e0e87b096642869f2412fa55e53bb6d49f4016b13a74ad47341bdb524fce7 |