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:
Jacob Kaplan-Moss 2007-01-12 15:16:55 +00:00
parent b118b28bac
commit c1b11091e7
1 changed files with 3 additions and 3 deletions

View File

@ -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