I am storing user information from nodejs app in the form of
SET user_<userid> {id:"asdad", .....}
I have sets of users organized by updates and such. Sometimes I need to retrieve large amount for users and send them to a client (lets say 100 users)
Currently I use MGET key1, key2, ....
then once I get them back I parse the json and return the result.
Would it better for me to store the users in hashes? To retrieve multiple users I could use multi together with HMGET so I would use 100 HMGETs and then get back the user data.
Big advantage I see for the HMGET is that if I need only some of my user fields I can retrieve partial objects instead of full objects.