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

Method batch_get

graphlite/src/storage/persistent/sled.rs:88–95  ·  view source on GitHub ↗
(&self, keys: &[&[u8]])

Source from the content-addressed store, hash-verified

86 }
87
88 fn batch_get(&self, keys: &[&[u8]]) -> StorageResult<Vec<Option<Vec<u8>>>> {
89 let mut results = Vec::with_capacity(keys.len());
90 for key in keys {
91 let value = self.get(key)?;
92 results.push(value);
93 }
94 Ok(results)
95 }
96
97 fn batch_insert(&self, entries: &[(&[u8], &[u8])]) -> StorageResult<()> {
98 for (key, value) in entries {

Callers

nothing calls this directly

Calls 2

lenMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected