i'm looking for a faster way to lookup a collection of keys in redis.
that's what i need to do:
HGET "user:001:coins" "2013-05-01"
it looks up stored coins for a user on a specific day.
Now i want to lookup all stored coins for a date range of a month:
HGET "user:001:coins" "2013-05-01"
HGET "user:001:coins" "2013-05-02"
....
Thats getting slow becasue i have to do that for 120 different users over 2 months. Is there a faster/better way to do this ?
one idea i had would be to add another key which holds the calculated coins amount for a month, and always recalculate the key if there is a change.
HGET "user:001:coins" "2013-05"
but that would mean additional programming logic, which i would like to avoid.