Ticket #5981: 5981-1.diff
File 5981-1.diff, 601 bytes (added by , 17 years ago) |
---|
-
django/core/cache/backends/locmem.py
15 15 self._lock = RWLock() 16 16 17 17 def add(self, key, value, timeout=None): 18 print 'LM add called' 18 19 self._lock.writer_enters() 19 20 try: 20 SimpleCacheClass.add(self, key, value, timeout)21 super(CacheClass, self).add(key, pickle.dumps(value), timeout) 21 22 finally: 22 23 self._lock.writer_leaves() 23 24