public long removeRangeByLex ( final LexRange lexRange ) { return doWithJedis ( new JedisCallable < Long > ( ) { @ Override public Long call ( Jedis jedis ) { return jedis . zremrangeByLex ( 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 removes all elements in the sorted set between the lexicographical range specified .