Skip to main content

assert_batch_contract

Function assert_batch_contract 

Source
pub async fn assert_batch_contract<B, K, V>(
    backend: &B,
    first_key: &K,
    second_key: &K,
    missing_key: &K,
    first_value: V,
    second_value: V,
)
where B: CacheBackend<K, V>, K: Eq + Hash + Sync, V: Debug + PartialEq + Send + Sync + 'static,
Expand description

Checks ordered batch reads, duplicate read positions, duplicate-write rejection, misses, pre-validation, and empty-batch behavior.

ยงPanics

Panics when a batch operation violates the public adapter contract.