im trying to store user data in a redis database. i have some code that basically amounts to this:
fn set_user_info() {
let mut con = Client::open("redis://127.0.0.1").unwrap().get_connection().unwrap();
let u = User {
name: "name".to_string(),
hash: "hash".to_string(),
};
let v = HashSet::from([
("name", &u.name),
("hash", &u.hash),
]);
con.set(&u.name, v).unwrap()
}
but for some reason this fails on my machine with a syntax error from redis
An error was signalled by the server - ResponseError: syntax error
what am i doing wrong?