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

Method get

graphlite/src/storage/persistent/memory.rs:38–40  ·  view source on GitHub ↗
(&self, key: &[u8])

Source from the content-addressed store, hash-verified

36 }
37
38 fn get(&self, key: &[u8]) -> StorageResult<Option<Vec<u8>>> {
39 Ok(self.data.read().get(key).cloned())
40 }
41
42 fn remove(&self, key: &[u8]) -> StorageResult<()> {
43 self.data.write().remove(key);

Callers 3

batch_getMethod · 0.45
open_treeMethod · 0.45
tree_statsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected