public void remove(BatchOperationHandle handle, byte[] token) { Pipeline pipeline = handle.pipeline; pipeline.hdel(DIRECTORY_KEY, token); }
@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 { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().hdel(key, fields))); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().hdel(key, fields))); return null; } return connection.getJedis().hdel(key, fields); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override Response<Long> execute(Pipeline jedisPipeline) throws DynoException { return jedisPipeline.hdel(key, field); } }.execute(key, OpName.HDEL);
@Override public Response<Long> hdel(String key, String member) { return pipe.hdel(key, member); }
((Pipeline) connection).hdel(getHashKey(entityMetadata.getTableName(), rowKey), relation);
@Override public Response<Long> hdel(byte[] key, byte[]... field) { String command = "hdel"; return instrumented(command, () -> delegated.hdel(key, field)); }
@Override public Response<Long> hdel(String key, String... field) { String command = "hdel"; return instrumented(command, () -> delegated.hdel(key, field)); }
((Pipeline) connection).hdel(getHashKey(entityMetadata.getTableName(), rowKey), PropertyAccessorFactory.STRING.fromBytes(String.class, name));
p.hdel(hashDirectoryMetadata, KEY_METADATA);
@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 { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().hdel(key, fields))); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().hdel(key, fields))); return null; } return connection.getJedis().hdel(key, fields); } 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 { if (isPipelined()) { pipeline(connection.newJedisResult(connection.getRequiredPipeline().hdel(key, fields))); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().hdel(key, fields))); return null; } return connection.getJedis().hdel(key, fields); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
((Pipeline) connection).hdel(getHashKey(entityMetadata.getTableName(), rowKey), relation);
public void cancel(ServiceItem item) { List<String> watchedKeys = new ArrayList<String>(1); watchedKeys.add(keyForVersion(item.getName())); Holder<Double> score = new Holder<Double>(); this.redis.execute(jedis -> { score.set(jedis.zscore(keyForSet(item.getName()), item.getKey())); }); if (score.value() == null) { return; } this.redis.pipeline(pipe -> { pipe.zrem(keyForSet(item.getName()), item.getKey()); pipe.hdel(keyForPayload(item.getName()), item.getKey()); pipe.incr(keyForVersion(item.getName())); pipe.incr(globalVersionKey); }); }
((Pipeline) connection).hdel(getHashKey(entityMetadata.getTableName(), rowKey), PropertyAccessorFactory.STRING.fromBytes(String.class, name));