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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for django-cacheback-2.1.0.tar.gz
Algorithm Hash digest
SHA256 47ee3c6a359d7ffee41df49bbacdb21ed70287400fe9f0be0a427a24d770737a
MD5 a54ab101c953d2c9ed0f14dce3197425
BLAKE2b-256 7e6a07e3557f2135c342bace362c4a62c75836e466cd9544478699a2b5a0e997

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cacheback-2.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a0efdb16ba6555c20c3ba3f3b6cb82ec502df976153547d2cf03d08a62302687
MD5 d08180d4461fb5c0ff8083a9a8fc4c58
BLAKE2b-256 20c0bc5b77da378b8604c6fdebd5341b9164a930104424b3eea65285ae883934

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