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

Method get_multi_eventual

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

Get multiple keys with eventual consistency. Reads multiple keys from local state machine (fast, may be stale). # Example ```ignore let keys = vec![Bytes::from("key1"), Bytes::from("key2")]; let values = client.get_multi_eventual(&keys).await?; ```

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

Source from the content-addressed store, hash-verified

351 /// let values = client.get_multi_eventual(&keys).await?;
352 /// ```
353 pub async fn get_multi_eventual(
354 &self,
355 keys: &[Bytes],
356 ) -> ClientApiResult<Vec<Option<Bytes>>> {
357 self.get_multi_with_consistency(keys, ReadConsistencyPolicy::EventualConsistency)
358 .await
359 }
360
361 /// Advanced: Get multiple keys with explicit consistency policy.
362 pub async fn get_multi_with_consistency(

Calls 1