I just got a requirement, to build a web only with Redis.
Data of the web is something like this(I write as RDBMS): User Info: user_id,first_name,last_name,age,..... Address: address_id,city,state,country,....
There is no problem at all if only write one user or get one user with "user_id".
But, what should I do if want to get all user younger than 20, or all user live in New York?
I can save all user_id under a key 'New York', but that's ugly isn't it. If want to add a new condition, that need scan all data to build the index.
And if the condition become, live in 'New York' and younger than 20, well....
Is there have some amazing way to do that with Redis?