I have some values in redis with this key structure
key:1:abc -> votes -> 0
-> name -> John
key:1:xyz -> votes -> 0
-> name -> Mary
key:1:def -> votes -> 1
-> name -> Larry
key:2:ijk -> votes -> 0
-> name -> apple
Thats how my keyspace looks like. I am using hmset to store the stuff in redis. The "key:1" is a placeholder for identifying different users in a particular space and the part after "key:1" is a unique differentiator for each record in "key:1". I want to write some code for filtering out the data from redis for getting all the records who have number of votes set to 0. So the output of the jedis code should be something like
key:1:abc -> votes -> 0
-> name -> John
key:1:xyz -> votes -> 0
-> name -> Mary
And Larry gets filtered out. I was looking into hmscan for solving this problem but am not sure what the command would look like. Any clue on what I can do to get that output? Also what do you think will be the time complexity to get this time?