class Redis
def zrange(key, start, stop, options = {})
-
(Array
-, Array<[String, Float]>)
Parameters:
-
options
(Hash
) -- -
stop
(Fixnum
) -- stop index -
start
(Fixnum
) -- start index -
key
(String
) --
Other tags:
- Example: Retrieve all members and their scores from a sorted set -
Example: Retrieve all members from a sorted set -
def zrange(key, start, stop, options = {}) args = [] with_scores = options[:with_scores] || options[:withscores] if with_scores args << "WITHSCORES" block = FloatifyPairs end synchronize do |client| client.call([:zrange, key, start, stop] + args, &block) end end