class Redis

def zrangebylex(key, min, max, options = {})

Returns:
  • (Array, Array<[String, Float]>) -

Parameters:
  • options (Hash) --
  • max (String) --
  • min (String) --
  • key (String) --

Other tags:
    Example: Retrieve the first 2 members matching a -
    Example: Retrieve members matching a -
def zrangebylex(key, min, max, options = {})
  args = []
  limit = options[:limit]
  args.concat(["LIMIT"] + limit) if limit
  synchronize do |client|
    client.call([:zrangebylex, key, min, max] + args)
  end
end