Refine search
@Override public List<byte[]> sRandMember(byte[] key, long count) { Assert.notNull(key, "Key must not be null!"); if (count > Integer.MAX_VALUE) { throw new IllegalArgumentException("Count cannot exceed Integer.MAX_VALUE!"); } try { return connection.getCluster().srandmember(key, Long.valueOf(count).intValue()); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public void lSet(byte[] key, long index, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { connection.getCluster().lset(key, index, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public byte[] hGet(byte[] key, byte[] field) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); try { return connection.getCluster().hget(key, field); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<byte[]> hMGet(byte[] key, byte[]... fields) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(fields, "Fields must not be null!"); try { return connection.getCluster().hmget(key, fields); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Boolean hExists(byte[] key, byte[] field) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); try { return connection.getCluster().hexists(key, field); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public List<byte[]> hVals(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return new ArrayList<>(connection.getCluster().hvals(key)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long rPushX(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().rpushx(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long lPushX(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().lpushx(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long lRem(byte[] key, long count, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().lrem(key, count, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public byte[] getSet(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().getSet(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long hDel(byte[] key, byte[]... fields) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(fields, "Fields must not be null!"); try { return connection.getCluster().hdel(key, fields); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Boolean sIsMember(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().sismember(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Double zScore(byte[] key, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return connection.getCluster().zscore(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long decrBy(byte[] key, long value) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().decrBy(key, value); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public byte[] getRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().getrange(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Boolean getBit(byte[] key, long offset) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().getbit(key, offset); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long bitCount(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().bitcount(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> zRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zrange(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRemRange(byte[] key, long start, long end) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zremrangeByRank(key, start, end); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long zRemRangeByScore(byte[] key, double min, double max) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().zremrangeByScore(key, min, max); } catch (Exception ex) { throw convertJedisAccessException(ex); } }