MCPcopy Create free account
hub / github.com/erans/pgsqlite / insert

Method insert

src/session/thread_local_cache.rs:30–34  ·  view source on GitHub ↗
(session_id: Uuid, connection: Arc<Mutex<Connection>>)

Source from the content-addressed store, hash-verified

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)]

Callers 7

newMethod · 0.45
with_metadataMethod · 0.45
newMethod · 0.45
create_portalMethod · 0.45
create_connectionMethod · 0.45

Calls 1

putMethod · 0.80

Tested by

no test coverage detected