use aok::{Result, OK}; use xkv::fred::interfaces::KeysInterface; xkv::conn!(R = R); #[tokio::test] async fn conn() -> Result<()> { // let redis = xkv::conn("R").await?; let key = "xkv-test"; // let redis = R.clone(); // dbg!(R); let val: Option = R.get(key).await?; dbg!(val); // let () = redis.del(key).await?; // assert_eq!(redis.get::, _>(key).await?, None); // let val = "值 abc"; // redis.set(key, val, None, None, false).await?; // let get_val = redis.get::, _>(key).await?; // assert_eq!(get_val, Some(val.into())); // redis.del(key).await?; // assert_eq!(redis.get::, _>(key).await?, None); OK }