Ticket #16162: dummy-timeout.2.diff
File dummy-timeout.2.diff, 1019 bytes (added by , 13 years ago) |
---|
-
tests/regressiontests/cache/tests.py
140 140 def test_set_many(self): 141 141 "set_many does nothing for the dummy cache backend" 142 142 self.cache.set_many({'a': 1, 'b': 2}) 143 self.cache.set_many({'a': 1, 'b': 2}, timeout=2, version='1') 143 144 144 145 def test_delete_many(self): 145 146 "delete_many does nothing for the dummy cache backend" -
django/core/cache/backends/dummy.py
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=None, version=None): 36 36 pass 37 37 38 38 def delete_many(self, keys, version=None):