(self, file, timeout, value)
| 41 | return default |
| 42 | |
| 43 | def _write_content(self, file, timeout, value): |
| 44 | expiry = self.get_backend_timeout(timeout) |
| 45 | file.write(pickle.dumps(expiry, self.pickle_protocol)) |
| 46 | file.write(zlib.compress(pickle.dumps(value, self.pickle_protocol))) |
| 47 | |
| 48 | def set(self, key, value, timeout=DEFAULT_TIMEOUT, version=None): |
| 49 | self._createdir() # Cache dir can be deleted at any time. |