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):
|
||||
pass
|
||||
|
||||
def get(self, *args, **kwargs):
|
||||
pass
|
||||
def get(self, key, default=None):
|
||||
return default
|
||||
|
||||
def set(self, *args, **kwargs):
|
||||
pass
|
||||
|
@ -16,7 +16,7 @@ class CacheClass(BaseCache):
|
|||
pass
|
||||
|
||||
def get_many(self, *args, **kwargs):
|
||||
pass
|
||||
return {}
|
||||
|
||||
def has_key(self, *args, **kwargs):
|
||||
return False
|
||||
|
|
Loading…
Reference in New Issue