MCPcopy Create free account
hub / github.com/deventlab/d-engine / get_multi_linearizable

Method get_multi_linearizable

d-engine-server/src/api/embedded_client.rs:336–342  ·  view source on GitHub ↗

Get multiple keys with linearizable consistency. Reads multiple keys from the Leader with strong consistency guarantee. # Example ```ignore let keys = vec![Bytes::from("key1"), Bytes::from("key2")]; let values = client.get_multi_linearizable(&keys).await?; ```

(
        &self,
        keys: &[Bytes],
    )

Source from the content-addressed store, hash-verified

334 /// let values = client.get_multi_linearizable(&keys).await?;
335 /// ```
336 pub async fn get_multi_linearizable(
337 &self,
338 keys: &[Bytes],
339 ) -> ClientApiResult<Vec<Option<Bytes>>> {
340 self.get_multi_with_consistency(keys, ReadConsistencyPolicy::LinearizableRead)
341 .await
342 }
343
344 /// Get multiple keys with eventual consistency.
345 ///

Calls 1