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.0.0.tar.gz (10.3 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.0.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for django_cacheback-4.0.0.tar.gz
Algorithm Hash digest
SHA256 595f276c162ca97cb1bb7c19dda44ddb3b9a7eeb34295b25b940ef4b205a0771
MD5 16225ebc15e3ebb0cc45f6d82f20651c
BLAKE2b-256 4acb3cd624a4323b71fd43661c986e11450017c8c736ed3a2b8c65073b23de15

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for django_cacheback-4.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 00379dca66871bc74a75344d1237c267e78f2f9f35cbbfb0a8644e02e2a6da79
MD5 13f3c17c5e23481d661fa2d08cf267c9
BLAKE2b-256 ce59cfa52eb5a9ef37c756ebc06c92ffffff3fdb0a2c8830ad9d3e51ca1c01de

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