MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / get_session

Method get_session

graphlite/src/session/manager.rs:137–141  ·  view source on GitHub ↗

Get a session by ID

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

135
136 /// Get a session by ID
137 pub fn get_session(&self, session_id: &str) -> Option<Arc<RwLock<UserSession>>> {
138 let partition_idx = self.partition_index(session_id);
139 let partition = self.sessions[partition_idx].read().ok()?;
140 partition.get(session_id).cloned()
141 }
142
143 /// Remove a session from the registry
144 pub fn remove_session(&self, session_id: &str) -> Result<(), String> {

Callers

nothing calls this directly

Calls 2

partition_indexMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected