Added some set commands

This commit is contained in:
Jonathan Leibiusky
2010-06-22 23:08:58 -03:00
parent 8815dbb7c6
commit a70037ecbd
2 changed files with 55 additions and 0 deletions

View File

@@ -265,4 +265,8 @@ public class Jedis extends Client {
public String rpoplpush(String srckey, String dstkey) throws JedisException {
return sendCommand("RPOPLPUSH", srckey, dstkey).getBulkReply();
}
public int sadd(String key, String member) throws JedisException {
return sendCommand("SADD", key, member).getIntegerReply();
}
}