Hello, I'm using https://crates.io/crates/redis with a redis::aio::ConnectionManager
to send a smembers
query to my redis server and I'm having difficulty to get the results:
let result = redis::cmd("SMEMBERS").arg(user_id.as_bytes()).query_async::<ConnectionManager, HashSet<String>>(&mut redis).await;
if let Ok(list) = result {
debug!("{:?}",list);
}
I get a Result<Ok>
and the debug!
print:
Response was of incompatible type: "Response type not string compatible." (response was bulk(string-data('"gabuzomeu"')))
According to the documentation, it should be able to convert it to a HashSet FromRedisValue in redis - Rust
And there is "some" examples that doing it.
What did I miss?