redis-async-rs
redis-async-rs copied to clipboard
How to send the 'eval' command
How to send the 'eval' command?Something like this:
127.0.0.1:6379> eval "return 1" 0
You can do that with the paired connection: https://docs.rs/redis-async/0.6.2/redis_async/client/paired/fn.paired_connect.html
So a rough example would be:
let connection = client::paired_connect(&addr)
.await
.expect("Cannot open connection");
let result = connection.send(resp_array!["EVAL", "return 1", "0"]).await;
thanks