Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jacob Kaplan-Moss authored January 12, 2007

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  django/core/cache/backends/dummy.py
6  django/core/cache/backends/dummy.py
@@ -6,8 +6,8 @@ class CacheClass(BaseCache):
6 6
     def __init__(self, *args, **kwargs):
7 7
         pass
8 8
 
9  
-    def get(self, *args, **kwargs):
10  
-        pass
  9
+    def get(self, key, default=None):
  10
+        return default
11 11
 
12 12
     def set(self, *args, **kwargs):
13 13
         pass
@@ -16,7 +16,7 @@ def delete(self, *args, **kwargs):
16 16
         pass
17 17
 
18 18
     def get_many(self, *args, **kwargs):
19  
-        pass
  19
+        return {}
20 20
 
21 21
     def has_key(self, *args, **kwargs):
22 22
         return False

0 notes on commit c1b1109

Please sign in to comment.
Something went wrong with that request. Please try again.