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.

Do you support Python 3?

Python 3.4, 3.5, 3.6, 3.7 and PyPy3 are supported.

Django versions 1.8 to 3.0 are supported.

Do you have tests?

You betcha!

https://secure.travis-ci.org/codeinthehole/django-cacheback.png

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-2.0.0.tar.gz (11.7 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-2.0.0-py2.py3-none-any.whl (13.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-cacheback-2.0.0.tar.gz.

File metadata

  • Download URL: django-cacheback-2.0.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for django-cacheback-2.0.0.tar.gz
Algorithm Hash digest
SHA256 853c467fe0b87403d38fe496d43387eb15564c8fb176045ae3c59d94079b4bb0
MD5 309212008347a46b911f2e8d2264cdeb
BLAKE2b-256 ba6ef0c5e7627f67afd1830b88f1732740de169b237c8fbb5c661d4bc2afe970

See more details on using hashes here.

File details

Details for the file django_cacheback-2.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_cacheback-2.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3b33096d691ca9da663b17f161b95e21d1cc4a26acca546f1db687cbf72f9ca9
MD5 e5a7cdbf844dd891256b487405a781b2
BLAKE2b-256 b9643992f7c0ab05a30722528a57210110715262dff83467743db02237fa4d9b

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