Merge pull request #364 from thesmith/master

Add 'del' to ShardedJedisPipeline
This commit is contained in:
Jonathan Leibiusky
2012-11-02 12:54:25 -07:00
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);