Kaydet (Commit) c1b11091 authored tarafından Jacob Kaplan-Moss's avatar Jacob Kaplan-Moss

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
üst b118b28b
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment