MCPcopy
hub / github.com/benoitc/gunicorn / clear_all

Method clear_all

examples/dirty_example/dirty_app.py:261–265  ·  view source on GitHub ↗

Clear all sessions (for testing).

(self)

Source from the content-addressed store, hash-verified

259 stash.put("counters", "requests", current + 1)
260
261 def clear_all(self):
262 """Clear all sessions (for testing)."""
263 stash.clear("sessions")
264 stash.put("counters", "requests", 0)
265 return {"status": "cleared"}
266
267 def close(self):
268 print(f"[SessionApp] Shutting down worker {self.worker_pid}")

Callers

nothing calls this directly

Calls 2

putMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected