Method: Redis::Commands::SortedSets#zrangebylex
- Defined in:
- lib/redis/commands/sorted_sets.rb
#zrangebylex(key, min, max, limit: nil) ⇒ Array<String>, Array<[String, Float]>
Return a range of members with the same score in a sorted set, by lexicographical ordering
468 469 470 471 472 473 474 475 476 477 |
# File 'lib/redis/commands/sorted_sets.rb', line 468 def zrangebylex(key, min, max, limit: nil) args = [:zrangebylex, key, min, max] if limit args << "LIMIT" args.concat(limit.map { |l| Integer(l) }) end send_command(args) end |