Added Set NXXX and EXPX options for JedisCluster and ShardedJedis

This commit is contained in:
Steve Parrington
2014-05-21 16:09:47 +01:00
parent ac53759f97
commit 51de5f72ab
3 changed files with 20 additions and 0 deletions

View File

@@ -32,6 +32,11 @@ public class ShardedJedis extends BinaryShardedJedis implements JedisCommands {
return j.set(key, value);
}
public String set(String key, String value, String nxxx,
String expx, long time) {
Jedis j = getShard(key);
return j.set(key, value, nxxx, expx, time);
}
public String get(String key) {
Jedis j = getShard(key);
return j.get(key);