diff --git a/src/main/java/org/springframework/data/redis/connection/ReactiveStringCommands.java b/src/main/java/org/springframework/data/redis/connection/ReactiveStringCommands.java index 4d7f2c37b..a78c749e1 100644 --- a/src/main/java/org/springframework/data/redis/connection/ReactiveStringCommands.java +++ b/src/main/java/org/springframework/data/redis/connection/ReactiveStringCommands.java @@ -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);