MCPcopy Create free account
hub / github.com/AI45Lab/Code / load

Method load

core/src/store/memory_store.rs:57–60  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

55 }
56
57 async fn load(&self, id: &str) -> Result<Option<SessionData>> {
58 let sessions = self.sessions.read().await;
59 Ok(sessions.get(id).cloned())
60 }
61
62 async fn delete(&self, id: &str) -> Result<()> {
63 let mut sessions = self.sessions.write().await;

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected