2011-12-05 59 views
0
results=$redis.zrevrangebyscore(key(:feed), "(#{max}", "-inf", :limit => [0, limit], :with_scores => scores) 

該Ruby代碼如何轉換爲Redis命令行?

results=$redis.zrevrange key(:feed), 0, count 

將這些會是什麼樣Redis的-CLI命令行?

回答

0
ZREVRANGEBYSCORE 'key(feed)' 'max' -inf WITHSCORES limit 0 'limit' 
ZREVRANGE 'key(feed)' 0 'count'