valkey-glide 0.9.0

Valkey GLIDE — native Rust client for Valkey and Redis OSS, built on glide-core.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Valkey GLIDE Project Contributors - SPDX Identifier: Apache-2.0
//! Mock-executor unit tests for the set command family.
use super::Mock;
use crate::commands::set::SetCommands;

#[tokio::test]
async fn sintercard_variants() {
    let m = Mock::int(2);
    assert_eq!(m.sintercard(&["s1", "s2"]).await.unwrap(), 2);
    m.assert_args(&["SINTERCARD", "2", "s1", "s2"]);

    let m = Mock::int(1);
    m.sintercard_limit(&["s1", "s2"], 1).await.unwrap();
    m.assert_args(&["SINTERCARD", "2", "s1", "s2", "LIMIT", "1"]);
}