mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user