DATAREDIS-850 - Fix assertion for expireTimeout in ReactiveStringCommands.pSetEx(…).
We now correctly assert the expireTimeout parameter. Original pull request: #351.
This commit is contained in:
@@ -333,7 +333,7 @@ public interface ReactiveStringCommands {
|
||||
|
||||
Assert.notNull(key, "Key must not be null!");
|
||||
Assert.notNull(value, "Value must not be null!");
|
||||
Assert.notNull(key, "ExpireTimeout must not be null!");
|
||||
Assert.notNull(expireTimeout, "ExpireTimeout must not be null!");
|
||||
|
||||
return pSetEX(Mono.just(SetCommand.set(key).value(value).expiring(expireTimeout))).next()
|
||||
.map(BooleanResponse::getOutput);
|
||||
|
||||
Reference in New Issue
Block a user