public Set<Tuple> zRangeWithScores(byte[] key, long start, long end) { try { if (isPipelined()) { pipeline(pipeline.zrange(key, start, end, SrpUtils.WITHSCORES)); return null; } return SrpUtils.convertTuple(client.zrange(key, start, end, SrpUtils.WITHSCORES)); } catch (Exception ex) { throw convertSrpAccessException(ex); } }
public Set<byte[]> zRange(byte[] key, long start, long end) { try { if (isPipelined()) { pipeline(pipeline.zrange(key, start, end, null)); return null; } return SrpUtils.toSet(client.zrange(key, start, end, null).data()); } catch (Exception ex) { throw convertSrpAccessException(ex); } }