Python MIT

django-cacheback

Smart caching for Django using Celery to refresh cached items asynchronously.

C

codeinthehole

Dernière activité 29 mai 2026
codeinthehole/django-cacheback

373

étoiles

76

forks

6

issues ouvertes

Ce README est souvent en anglais.

Cacheback

Asynchronous cache refreshing for Django

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.10+ is supported. Django 5.2+ is supported.

Do you have tests?

You betcha!

CI Status

Can I use this in my project?

Probably - subject to the MIT license.

I want to contribute!

Brilliant! Here are the contributing guidelines.

Projets similaires

A slick ORM cache with automatic granular event-driven invalidation.

Pythoncachingdjangoorm
SSuor
2,3 k étoiles242

No effort, no worry, maximum performance.

Pythoncachedjangoperformance
Nnoripyt
1,4 k étoiles158

Full featured redis cache backend for Django.

Python
Jjazzband
3,1 k étoiles459