Added Set NXXX and EXPX options for JedisCluster and ShardedJedis
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user