diff -r ab1e620b1eaf django/core/cache/backends/memcached.py
a
|
b
|
|
53 | 53 | return self._cache.add(key, value, self._get_memcache_timeout(timeout)) |
54 | 54 | |
55 | 55 | def get(self, key, default=None, version=None): |
| 56 | print 'get base key =',key |
| 57 | print 'get base version =',version |
56 | 58 | key = self.make_key(key, version=version) |
| 59 | print 'get key =',key |
57 | 60 | val = self._cache.get(key) |
| 61 | print 'get val =',val |
58 | 62 | if val is None: |
59 | 63 | return default |
60 | 64 | return val |
61 | 65 | |
62 | 66 | def set(self, key, value, timeout=0, version=None): |
| 67 | print 'set base key =',key |
| 68 | print 'set base version =',version |
63 | 69 | key = self.make_key(key, version=version) |
| 70 | print 'set key =',key |
| 71 | print 'set timeout =',self._get_memcache_timeout(timeout) |
64 | 72 | self._cache.set(key, value, self._get_memcache_timeout(timeout)) |
65 | 73 | |
66 | 74 | def delete(self, key, version=None): |