@Override public Set<byte[]> zRangeByLex(byte[] key, Range range, Limit limit) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(range, "Range cannot be null for ZRANGEBYLEX."); Assert.notNull(limit, "Limit must not be null!"); byte[] min = JedisConverters.boundaryToBytesForZRangeByLex(range.getMin(), JedisConverters.toBytes("-")); byte[] max = JedisConverters.boundaryToBytesForZRangeByLex(range.getMax(), JedisConverters.toBytes("+")); try { if (limit.isUnlimited()) { return connection.getCluster().zrangeByLex(key, min, max); } return connection.getCluster().zrangeByLex(key, min, max, limit.getOffset(), limit.getCount()); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zrangeByLex(byte[] bytes, byte[] bytes1, byte[] bytes2) { return cluster.zrangeByLex(bytes, bytes1, bytes2); }
public Set<String> zrangeByLex(String key, String min, String max) { return jedisCluster.zrangeByLex(key, min, max); }
@Override public Set<byte[]> zrangeByLex(byte[] bytes, byte[] bytes1, byte[] bytes2, int i, int i1) { return cluster.zrangeByLex(bytes, bytes1, bytes2, i, i1); }
public Set<String> zrangeByLex(String key, String min, String max, int offset, int count) { return jedisCluster.zrangeByLex(key, min, max, offset, count); }
public Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max) { return jedisCluster.zrangeByLex(key, min, max); }
public Set<byte[]> zrangeByLex(byte[] key, byte[] min, byte[] max, int offset, int count) { return jedisCluster.zrangeByLex(key, min, max, offset, count); }
@Override public Set<String> zrangeByLex(final String key, final String min, final String max, final int offset, final int count) { Assert.hasText(key); Assert.hasText(min); Assert.hasText(max); try { return cluster.zrangeByLex(key, min, max, offset, count); } catch (final Throwable e) { throw new RedisClientException(e.getMessage(), e); } }
@Override public Set<byte[]> zRangeByLex(byte[] key, Range range, Limit limit) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(range, "Range cannot be null for ZRANGEBYLEX."); Assert.notNull(limit, "Limit must not be null!"); byte[] min = JedisConverters.boundaryToBytesForZRangeByLex(range.getMin(), JedisConverters.toBytes("-")); byte[] max = JedisConverters.boundaryToBytesForZRangeByLex(range.getMax(), JedisConverters.toBytes("+")); try { if (limit.isUnlimited()) { return connection.getCluster().zrangeByLex(key, min, max); } return connection.getCluster().zrangeByLex(key, min, max, limit.getOffset(), limit.getCount()); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRangeByLex(byte[] key, Range range, Limit limit) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(range, "Range cannot be null for ZRANGEBYLEX."); Assert.notNull(limit, "Limit must not be null!"); byte[] min = JedisConverters.boundaryToBytesForZRangeByLex(range.getMin(), JedisConverters.toBytes("-")); byte[] max = JedisConverters.boundaryToBytesForZRangeByLex(range.getMax(), JedisConverters.toBytes("+")); try { if (limit.isUnlimited()) { return connection.getCluster().zrangeByLex(key, min, max); } return connection.getCluster().zrangeByLex(key, min, max, limit.getOffset(), limit.getCount()); } catch (Exception ex) { throw convertJedisAccessException(ex); } }