Method: Redis#zrange
- Defined in:
- lib/redis.rb
#zrange(key, start, stop, options = {}) ⇒ Object
Return a range of members in a sorted set, by index.
546 547 548 549 550 551 552 553 554 555 |
# File 'lib/redis.rb', line 546 def zrange(key, start, stop, = {}) command = CommandOptions.new() do |c| c.bool :withscores c.bool :with_scores end synchronize do @client.call(:zrange, key, start, stop, *command.to_a) end end |