public List<String> subList(final long fromIndex, final long toIndex) {
        return doWithJedis(new JedisCallable<List<String>>() {
            @Override
            public List<String> call(Jedis jedis) {
                return jedis.lrange(getKey(), fromIndex, toIndex);
            }
        });
    }
public List < String > subList ( final long fromIndex , final long toIndex ) { return doWithJedis ( new JedisCallable < List < String > > ( ) { @ Override public List < String > call ( Jedis jedis ) { return jedis . lrange ( getKey ( ) , fromIndex , toIndex ) ; } } ) ; }
Get a sub-list of this list
@param fromIndex index of the first element in the sub-list (inclusive)
@param toIndex index of the last element in the sub-list (inclusive)
@return the sub-list