Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #16162. Added timeout arg to `DummyCache.set_many`, for compati…

…blity with other caches. Thanks to aaugustin for the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16778 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 67dde2f52f69e9a3834c196135462c93b41649d0 1 parent b557810
Alex Gaynor authored
2  django/core/cache/backends/dummy.py
@@ -32,7 +32,7 @@ def has_key(self, key, version=None):
32 32
         self.validate_key(key)
33 33
         return False
34 34
 
35  
-    def set_many(self, data, version=None):
  35
+    def set_many(self, data, timeout=0, version=None):
36 36
         pass
37 37
 
38 38
     def delete_many(self, keys, version=None):
1  tests/regressiontests/cache/tests.py
@@ -147,6 +147,7 @@ def test_unicode(self):
147 147
     def test_set_many(self):
148 148
         "set_many does nothing for the dummy cache backend"
149 149
         self.cache.set_many({'a': 1, 'b': 2})
  150
+        self.cache.set_many({'a': 1, 'b': 2}, timeout=2, version='1')
150 151
 
151 152
     def test_delete_many(self):
152 153
         "delete_many does nothing for the dummy cache backend"

0 notes on commit 67dde2f

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