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 user 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 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
File details
Details for the file django-cacheback-0.2.1.tar.gz
.
File metadata
- Download URL: django-cacheback-0.2.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e95e4ef8ee6bbdcd7a318c6621469ef725b7f1740e7b74876f99e473c2f1831a |
|
MD5 | 0df316ff93d1dd1dbed72feaf982f02a |
|
BLAKE2b-256 | 87475ddeecaabf90f5d734aa01dccae240bc5e2bda65b6ca9b1ad6c4c43ae0ea |