Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #3290: DummyCache now conforms to the BaseCache interface corre…

…ctly. Thanks, Ned Batchelder.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@4308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c1b11091e7f7859b66cc1d72fbce712c22c2ad0a 1 parent b118b28
@jacobian jacobian authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/core/cache/backends/dummy.py
View
6 django/core/cache/backends/dummy.py
@@ -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 @@ def delete(self, *args, **kwargs):
pass
def get_many(self, *args, **kwargs):
- pass
+ return {}
def has_key(self, *args, **kwargs):
return False
Please sign in to comment.
Something went wrong with that request. Please try again.