public Set < String > rangeByLex ( final LexRange lexRange ) { return doWithJedis ( new JedisCallable < Set < String > > ( ) { @ Override public Set < String > call ( Jedis jedis ) { if ( lexRange . hasLimit ( ) ) { return jedis . zrangeByLex ( getKey ( ) , lexRange . from ( ) , lexRange . to ( ) , lexRange . offset ( ) , lexRange . count ( ) ) ; } else { return jedis . zrangeByLex ( getKey ( ) , lexRange . from ( ) , lexRange . to ( ) ) ; } } } ) ; }
When all the elements in a sorted set are inserted with the same score in order to force lexicographical ordering this command returns all the elements in the sorted set with a value in the given range . If the elements in the sorted set have different scores the returned elements are unspecified .