Skip to content

Commit

Permalink
fix redisValue since it is Array, not Set
Browse files Browse the repository at this point in the history
  • Loading branch information
ckcr4lyf committed Nov 14, 2024
1 parent f0a3d2c commit ada4738
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/redis_zset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ fn main(){

// Work with low val
let zrange_result = match r_client.zrangebyscore::<_, _, _, redis::Value>("MYKEY", "0", "101").unwrap() {
redis::Value::Set(v1) => v1,
redis::Value::Array(v1) => {
println!("it is array");
v1
}
_ => vec![]
};

Expand Down

0 comments on commit ada4738

Please sign in to comment.