I am using jedis to interact with redis in java language.
Problem Background
I am using hash to store user all information like:
hmset user:1 name xxx email yyy age zzz
hmset user:2 name aaa email bbb age ccc
Now in order to get any user data i can perform operation like:
hmget user:1 name email
Problem
My problem is that I want to search a user with name xxx. Now in this case I dont know the actual key. Mean I dont know I have to hit user:1 or user:2.
So how should I handle this case?
Any help would be very appreciative.