# File lib/redis.rb, line 1514 def zrangebyscore(key, min, max, options = {}) args = [] with_scores = options[:with_scores] || options[:withscores] args.concat ["WITHSCORES"] if with_scores limit = options[:limit] args.concat ["LIMIT", *limit] if limit synchronize do |client| client.call [:zrangebyscore, key, min, max, *args] do |reply| if with_scores if reply reply.each_slice(2).map do |member, score| [member, Float(score)] end end else reply end end end end