Added Set NXXX and EXPX options for JedisCluster and ShardedJedis
This commit is contained in:
@@ -44,6 +44,18 @@ public class JedisCluster implements JedisCommands, BasicCommands {
|
||||
}.run(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String set(final String key, final String value, final String nxxx,
|
||||
final String expx, final long time) {
|
||||
return new JedisClusterCommand<String>(connectionHandler, timeout,
|
||||
maxRedirections) {
|
||||
@Override
|
||||
public String execute(Jedis connection) {
|
||||
return connection.set(key, value, nxxx, expx, time);
|
||||
}
|
||||
}.run(key);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String get(final String key) {
|
||||
return new JedisClusterCommand<String>(connectionHandler, timeout,
|
||||
|
||||
Reference in New Issue
Block a user