(session_id: Uuid, connection: Arc<Mutex<Connection>>)
| 28 | /// Store a connection in the thread-local cache |
| 29 | #[inline(always)] |
| 30 | pub fn insert(session_id: Uuid, connection: Arc<Mutex<Connection>>) { |
| 31 | CONNECTION_CACHE.with(|cache| { |
| 32 | cache.borrow_mut().put(session_id, connection); |
| 33 | }) |
| 34 | } |
| 35 | |
| 36 | /// Remove a connection from the thread-local cache |
| 37 | #[inline(always)] |
no test coverage detected