(self, application_id)
| 31 | return pickled |
| 32 | |
| 33 | def clear_by_application_id(self, application_id): |
| 34 | delete_keys = [] |
| 35 | for key in self._cache.keys(): |
| 36 | value = self._cache.get(key) |
| 37 | if (hasattr(value, |
| 38 | 'application') and value.application is not None and value.application.id is not None and |
| 39 | str( |
| 40 | value.application.id) == application_id): |
| 41 | delete_keys.append(key) |
| 42 | for key in delete_keys: |
| 43 | self._delete(key) |
| 44 | |
| 45 | def clear_timeout_data(self): |
| 46 | for key in self._cache.keys(): |