diff --git a/webserver/lib/django-1.3/django/core/cache/backends/locmem.py b/webserver/lib/django-1.3/django/core/cache/backends/locmem.py
index ecec875..7b1f845 100644
a
|
b
|
class LocMemCache(BaseCache):
|
86 | 86 | finally: |
87 | 87 | self._lock.writer_leaves() |
88 | 88 | |
| 89 | def incr(self, key, delta=1, version=None): |
| 90 | """ |
| 91 | Add delta to value in the cache. |
| 92 | """ |
| 93 | value = self.get(key, version=version) |
| 94 | if value is None: |
| 95 | raise ValueError("Key '%s' not found" % key) |
| 96 | full_key = self.make_key(key, version=version) |
| 97 | exp = self._expire_info.get(full_key) |
| 98 | |
| 99 | new_value = value + delta |
| 100 | self.set(key, new_value, version=version, timeout=exp) |
| 101 | |
89 | 102 | def has_key(self, key, version=None): |
90 | 103 | key = self.make_key(key, version=version) |
91 | 104 | self.validate_key(key) |