diff --git a/java/client/src/main/java/glide/api/commands/StringBaseCommands.java b/java/client/src/main/java/glide/api/commands/StringBaseCommands.java index 7f63ecde46..791c2d7e64 100644 --- a/java/client/src/main/java/glide/api/commands/StringBaseCommands.java +++ b/java/client/src/main/java/glide/api/commands/StringBaseCommands.java @@ -90,7 +90,7 @@ public interface StringBaseCommands { * assert value.equals("value"); * } */ - CompletableFuture getex(String key, @NonNull GetExOptions options); + CompletableFuture getex(String key, GetExOptions options); /** * Sets the given key with the given value. diff --git a/java/client/src/main/java/glide/api/models/commands/GetExOptions.java b/java/client/src/main/java/glide/api/models/commands/GetExOptions.java index 8012cd9eea..13f2bf135d 100644 --- a/java/client/src/main/java/glide/api/models/commands/GetExOptions.java +++ b/java/client/src/main/java/glide/api/models/commands/GetExOptions.java @@ -47,8 +47,8 @@ public static GetExOptions Seconds(Long seconds) { /** * Set the specified expire time, in milliseconds. Equivalent to PX in the Redis API. * - * @param milliseconds The time to expire, in seconds. - * @return Expiry + * @param milliseconds The time to expire, in milliseconds. + * @return The options specifying the given expiry. */ public static GetExOptions Milliseconds(Long milliseconds) { return new GetExOptions(MILLISECONDS, milliseconds); @@ -59,7 +59,7 @@ public static GetExOptions Milliseconds(Long milliseconds) { * EXAT in the Redis API. * * @param unixSeconds The UNIX TIME to expire, in seconds. - * @return Expiry + * @return The options specifying the given expiry. */ public static GetExOptions UnixSeconds(Long unixSeconds) { return new GetExOptions(UNIX_SECONDS, unixSeconds); @@ -70,7 +70,7 @@ public static GetExOptions UnixSeconds(Long unixSeconds) { * PXAT in the Redis API. * * @param unixMilliseconds The UNIX TIME to expire, in milliseconds. - * @return Expiry + * @return The options specifying the given expiry. */ public static GetExOptions UnixMilliseconds(Long unixMilliseconds) { return new GetExOptions(UNIX_MILLISECONDS, unixMilliseconds);