MCPcopy Create free account
hub / github.com/webpy/webpy / _cleanup

Method _cleanup

web/session.py:190–196  ·  view source on GitHub ↗

Cleanup the stored sessions

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 1

_processorMethod · 0.95

Calls 1

cleanupMethod · 0.45

Tested by

no test coverage detected