Skip to content

squadrun/django-cacheback

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 Cannot retrieve latest commit at this time.
Mar 11, 2023
Oct 19, 2022
Jan 21, 2022
Nov 6, 2020
Nov 5, 2020
Nov 6, 2020
Nov 5, 2020
Nov 5, 2020
Nov 6, 2020
Nov 18, 2020
Aug 6, 2012
Nov 5, 2020
May 7, 2022
Nov 6, 2020
Mar 11, 2023
Mar 11, 2023

Repository files navigation

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.6+ is supported. Django 2.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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.6%
  • Other 1.4%