mirror of
https://github.com/django/django.git
synced 2025-11-01 12:25:37 +00:00
Fixed #11675 -- Added support for the PyLibMC cache library. In order to support this, and clean up some other 1.3 caching additions, this patch also includes some changes to the way caches are defined. This means you can now have multiple caches, in the same way you have multiple databases. A huge thanks to Jacob Burch for the work on the PyLibMC backend, and to Jannis for his work on the cache definition changes.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15005 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
3cf8502d35
commit
673e6fc7fb
19 changed files with 739 additions and 247 deletions
|
|
@ -1,9 +1,9 @@
|
|||
from django.core.cache.backends.locmem import CacheClass as LocMemCacheClass
|
||||
from django.core.cache.backends.locmem import LocMemCache
|
||||
|
||||
class LiberalKeyValidationMixin(object):
|
||||
def validate_key(self, key):
|
||||
pass
|
||||
|
||||
class CacheClass(LiberalKeyValidationMixin, LocMemCacheClass):
|
||||
class CacheClass(LiberalKeyValidationMixin, LocMemCache):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue