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:
jsajadi
2018-07-08 16:28:02 +04:30
committed by Mark Paluch
parent 9e74556f74
commit 3defab118e

View File

@@ -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);