For example, I have a list of items, some sets to record item tags, and a
sorted set to record item update time in its score. When I want to generate a
list of items updated within an hour and with a special tag(the list does not
have to order by updated time), I could do:
zset2setbyscore zset:item:update set:item:updated:hour now() now()-3600
sinterstore set:item:updated:hour:tag set:item:updated:hour set:item:tag
sort set:item:updated:hour:tag by ...
Original issue reported on code.google.com by ZhangGon...@gmail.com on 22 Jan 2011 at 7:29
Original issue reported on code.google.com by
ZhangGon...@gmail.com
on 22 Jan 2011 at 7:29