Refine search
@Override public RedisHashCommands hashCommands() { return new JedisClusterHashCommands(this); }
@Override public Boolean hSet(byte[] key, byte[] field, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return JedisConverters.toBoolean(connection.getCluster().hset(key, field, 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 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 Map<byte[], byte[]> hGetAll(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().hgetAll(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public void hMSet(byte[] key, Map<byte[], byte[]> hashes) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(hashes, "Hashes must not be null!"); try { connection.getCluster().hmset(key, hashes); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> hKeys(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().hkeys(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long hIncrBy(byte[] key, byte[] field, long delta) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); try { return connection.getCluster().hincrBy(key, field, delta); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long hLen(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().hlen(key); } 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 hSetNX(byte[] key, byte[] field, byte[] value) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); Assert.notNull(value, "Value must not be null!"); try { return JedisConverters.toBoolean(connection.getCluster().hsetnx(key, field, value)); } 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 Double hIncrBy(byte[] key, byte[] field, double delta) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); try { return connection.getCluster().hincrByFloat(key, field, delta); } 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 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 Map<byte[], byte[]> hGetAll(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().hgetAll(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public void hMSet(byte[] key, Map<byte[], byte[]> hashes) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(hashes, "Hashes must not be null!"); try { connection.getCluster().hmset(key, hashes); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Set<byte[]> hKeys(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { return connection.getCluster().hkeys(key); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Long hIncrBy(byte[] key, byte[] field, long delta) { Assert.notNull(key, "Key must not be null!"); Assert.notNull(field, "Field must not be null!"); try { return connection.getCluster().hincrBy(key, field, delta); } catch (Exception ex) { throw convertJedisAccessException(ex); } }