Skip to main content

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.

Release files for django-cacheback 4.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-cacheback 4.1.0
File Size Uploaded
django_cacheback-4.1.0.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-cacheback 4.1.0
File Interpreter ABI Platform
django_cacheback-4.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 22.6 kB

Release files / django_cacheback-4.1.0.tar.gz

Download URL django_cacheback-4.1.0.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
47b4997fe5ffe0e86fa550b5b20f11b4451bd21315f575966fc974913711e21a
BLAKE2b-256 checksum
How to use checksums
5f7db5a8bfcb8086689e6969f7e6b7a2010c4f471776e0aada2102975d6a7603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.11 Linux/7.0.3-arch1-2

Release files / django_cacheback-4.1.0-py3-none-any.whl

Download URL django_cacheback-4.1.0-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f78cc078b4b6ff1cdb1a8b7746dac7128635efa13812919ed89f97334018aa8c
BLAKE2b-256 checksum
How to use checksums
163d7087bd04d4d8ad5ce0a40b8b0e7d574a897d040bfcc336d9928ce589765f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.2.1 CPython/3.12.11 Linux/7.0.3-arch1-2

Release history Release notifications | RSS feed

This release

4.1.0 This release

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.4.0

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3

2 release files

1.2

2 release files

1.1

1 release file

1.0

2 release files

0.9.1

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page