(session_id: &Uuid)
| 36 | /// Remove a connection from the thread-local cache |
| 37 | #[inline(always)] |
| 38 | pub fn remove(session_id: &Uuid) { |
| 39 | CONNECTION_CACHE.with(|cache| { |
| 40 | cache.borrow_mut().pop(session_id); |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | /// Clear all cached connections for this thread |
| 45 | pub fn clear() { |
no outgoing calls
no test coverage detected