adding del to sharded jedis pipeline

This commit is contained in:
Ben Smith
2012-10-21 17:17:26 +01:00
parent b9442ea540
commit 909be715bc
2 changed files with 11 additions and 0 deletions

View File

@@ -39,6 +39,13 @@ public class ShardedJedisPipeline extends Queable {
return getResponse(BuilderFactory.STRING);
}
public Response<Long> del(String key) {
Client c = getClient(key);
c.del(key);
results.add(new FutureResult(c));
return getResponse(BuilderFactory.LONG);
}
public Response<Boolean> exists(String key) {
Client c = getClient(key);
c.exists(key);