Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b118b28bac
commit
c1b11091e7
|
@ -6,8 +6,8 @@ class CacheClass(BaseCache):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get(self, *args, **kwargs):
|
def get(self, key, default=None):
|
||||||
pass
|
return default
|
||||||
|
|
||||||
def set(self, *args, **kwargs):
|
def set(self, *args, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
@ -16,7 +16,7 @@ class CacheClass(BaseCache):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def get_many(self, *args, **kwargs):
|
def get_many(self, *args, **kwargs):
|
||||||
pass
|
return {}
|
||||||
|
|
||||||
def has_key(self, *args, **kwargs):
|
def has_key(self, *args, **kwargs):
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue