use oomclient::{Client, Value}; #[tokio::main] async fn main() -> Result<(), Box> { let mut client = Client::connect("http://localhost:50051").await?; let kvs = [ ("last_5_click_posts".to_string(), Value::String("hello".into())), ("number_of_user_starred_posts".to_string(), Value::Int64(28)), ] .into_iter() .collect(); client.push("1", "user-click", kvs).await?; Ok(()) }