antidogpilingGeneric and specific implementations of anti-dogpiled caching | |
Download |
antidogpiling Ranking & Summary
Advertisement
- License:
- BSD License
- Publisher Name:
- Torgeir Lorange
- Publisher web site:
- http://github.com/torgeilo/
antidogpiling Tags
antidogpiling Description
Generic and specific implementations of anti-dogpiled caching antidogpiling is a Python framework, a generic set of functionality for implementing anti-dogpiled caching. It currently includes completed implementations for all the Django 1.2 and 1.3 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 this package:- 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 and 1.3 cache backends, without re-implementing any Django functionalityUsing the anti-dogpiled Django 1.2 backendsSimply 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'Using the anti-dogpiled Django 1.3 backendsSimply replace the ``BACKEND`` reference with the corresponding anti-dogpiled backend. An example:: CACHES = { 'default': { 'BACKEND': 'antidogpiling.django.memcached.MemcachedCache', 'LOCATION': '127.0.0.1:11211'. } } Requirements: · Python What's New in This Release: · Added support for Django 1.3 backends
antidogpiling Related Software