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

Method session_count

graphlite/src/session/manager.rs:216–222  ·  view source on GitHub ↗

Get session count

(&self)

Source from the content-addressed store, hash-verified

214
215 /// Get session count
216 pub fn session_count(&self) -> usize {
217 self.sessions
218 .iter()
219 .filter_map(|partition| partition.read().ok())
220 .map(|sessions| sessions.len())
221 .sum()
222 }
223
224 /// Create an anonymous session for internal/testing use
225 pub fn create_anonymous_session(&self) -> Result<String, String> {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected