(session_id: &Uuid)
| 20 | /// Try to get a connection from the thread-local cache |
| 21 | #[inline(always)] |
| 22 | pub fn get(session_id: &Uuid) -> Option<Arc<Mutex<Connection>>> { |
| 23 | CONNECTION_CACHE.with(|cache| { |
| 24 | cache.borrow_mut().get(session_id).cloned() |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | /// Store a connection in the thread-local cache |
| 29 | #[inline(always)] |
no outgoing calls
no test coverage detected