1. Luke Plant
  2. django

Commits

ja...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 4c791c2

Fixed #3290: DummyCache now conforms to the BaseCache interface correctly. Thanks, Ned Batchelder.

  • Participants
  • Parent commits 4aa3d3e
  • Branches default

Comments (0)

Files changed (1)

File django/core/cache/backends/dummy.py

View file
  • Ignore whitespace
     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
         pass
 
     def get_many(self, *args, **kwargs):
-        pass
+        return {}
 
     def has_key(self, *args, **kwargs):
         return False