Skip to main content

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.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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_cacheback-4.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_cacheback-4.1.0-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file django_cacheback-4.1.0.tar.gz.

File metadata

  • Download URL: django_cacheback-4.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Linux/7.0.3-arch1-2

File hashes

Hashes for django_cacheback-4.1.0.tar.gz
Algorithm Hash digest
SHA256 47b4997fe5ffe0e86fa550b5b20f11b4451bd21315f575966fc974913711e21a
MD5 26045c3f955399be65fb66cf7f2a3c38
BLAKE2b-256 5f7db5a8bfcb8086689e6969f7e6b7a2010c4f471776e0aada2102975d6a7603

See more details on using hashes here.

File details

Details for the file django_cacheback-4.1.0-py3-none-any.whl.

File metadata

  • Download URL: django_cacheback-4.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.11 Linux/7.0.3-arch1-2

File hashes

Hashes for django_cacheback-4.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f78cc078b4b6ff1cdb1a8b7746dac7128635efa13812919ed89f97334018aa8c
MD5 1ed03bff2c9c730175a3471ff2937d8d
BLAKE2b-256 163d7087bd04d4d8ad5ce0a40b8b0e7d574a897d040bfcc336d9928ce589765f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page