Skip to main content

Generic and specific implementations of anti-dogpiled caching

Project description

The antidogpiling framework is a generic set of functionality for implementing anti-dogpiled caching. It currently includes completed implementations for all the Django 1.2 cache backends.

Dogpiling is the effect you get when a cached value times out, and everyone rushes to create a new value. The anti-dogpiling tries to mitigate this by serving the old value while waiting for a few (ideally one) who are let through to produce a new value.

Benefits of using this package compared to others:

  • It provides the generic functionality

  • It wraps the cached data in a custom object and not in a tuple or dict or so, making it possible to actually cache tuples or dicts which would potentially conflict with the internal handling

  • It supports all Django 1.2 cache backends, without re-implementing any Django functionality

Using the anti-dogpiled Django 1.2 backends

Simply set the CACHE_BACKEND setting to point to the right module. A few examples:

CACHE_BACKEND = "antidogpiling.django.memcached://127.0.0.1:11211/"
CACHE_BACKEND = "antidogpiling.django.filebased:///var/tmp/django_cache"

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

antidogpiling-1.0.1.tar.gz (5.1 kB view details)

Uploaded Source

File details

Details for the file antidogpiling-1.0.1.tar.gz.

File metadata

  • Download URL: antidogpiling-1.0.1.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for antidogpiling-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ab07f706c13b5163eec90a2d7f4c8bcbd3320119c97be9170c1cc98eeb10553c
MD5 61ac74cfe52e5d116f9825ccc6e84f41
BLAKE2b-256 d4c51cc448519a12439c5fe08f201c803b42833a3ad2098ad7e541993864406e

See more details on using hashes here.

Supported by

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