Cleanup the stored sessions
(self)
| 188 | return rx.match(session_id) |
| 189 | |
| 190 | def _cleanup(self): |
| 191 | """Cleanup the stored sessions""" |
| 192 | current_time = time.time() |
| 193 | timeout = self._config.timeout |
| 194 | if current_time - self._last_cleanup_time > timeout: |
| 195 | self.store.cleanup(timeout) |
| 196 | self._last_cleanup_time = current_time |
| 197 | |
| 198 | def expired(self): |
| 199 | """Called when an expired session is atime""" |