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

Method get_active_session_ids

graphlite/src/session/manager.rs:173–184  ·  view source on GitHub ↗

Get all active session IDs

(&self)

Source from the content-addressed store, hash-verified

171
172 /// Get all active session IDs
173 pub fn get_active_session_ids(&self) -> Vec<String> {
174 let mut all_ids = Vec::new();
175
176 // Collect IDs from all partitions
177 for partition in &self.sessions {
178 if let Ok(sessions) = partition.read() {
179 all_ids.extend(sessions.keys().cloned());
180 }
181 }
182
183 all_ids
184 }
185
186 /// Clean up expired sessions
187 pub fn cleanup_expired_sessions(&self) -> Result<usize, String> {

Callers 2

list_sessionsMethod · 0.80
list_sessionsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected