Method: Redis#zrangebyscore
- Defined in:
- lib/redis.rb
#zrangebyscore(key, min, max, options = {}) ⇒ Object
Return a range of members in a sorted set, by score.
565 566 567 568 569 570 571 572 573 574 575 |
# File 'lib/redis.rb', line 565 def zrangebyscore(key, min, max, = {}) command = CommandOptions.new() do |c| c.splat :limit c.bool :withscores c.bool :with_scores end synchronize do @client.call [:zrangebyscore, key, min, max, *command.to_a] end end |