Package glide.api.models.commands
Class GetExOptions
- java.lang.Object
-
- glide.api.models.commands.GetExOptions
-
public class GetExOptions extends java.lang.ObjectOptional arguments toStringBaseCommands.getex(String, GetExOptions)command.- See Also:
- valkey.io
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classGetExOptions.ExpiryTypeTypes of value expiration configuration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetExOptionsMilliseconds(java.lang.Long milliseconds)Set the specified expire time, in milliseconds.static GetExOptionsPersist()Remove the time to live associated with the key.static GetExOptionsSeconds(java.lang.Long seconds)Set the specified expire time, in seconds.java.lang.String[]toArgs()Converts GetExOptions into a String[] to pass to theGETEXcommand.GlideString[]toGlideStringArgs()Converts GetExOptions into a GlideString[] to pass to theGETEXcommand.static GetExOptionsUnixMilliseconds(java.lang.Long unixMilliseconds)Set the specified Unix time at which the key will expire, in milliseconds.static GetExOptionsUnixSeconds(java.lang.Long unixSeconds)Set the specified Unix time at which the key will expire, in seconds.
-
-
-
Method Detail
-
Seconds
public static GetExOptions Seconds(java.lang.Long seconds)
Set the specified expire time, in seconds. Equivalent toEXin the Valkey API.- Parameters:
seconds- The time to expire, in seconds.- Returns:
- The options specifying the given expiry.
-
Milliseconds
public static GetExOptions Milliseconds(java.lang.Long milliseconds)
Set the specified expire time, in milliseconds. Equivalent toPXin the Valkey API.- Parameters:
milliseconds- The time to expire, in milliseconds.- Returns:
- The options specifying the given expiry.
-
UnixSeconds
public static GetExOptions UnixSeconds(java.lang.Long unixSeconds)
Set the specified Unix time at which the key will expire, in seconds. Equivalent toEXATin the Valkey API.- Parameters:
unixSeconds- TheUNIX TIMEto expire, in seconds.- Returns:
- The options specifying the given expiry.
-
UnixMilliseconds
public static GetExOptions UnixMilliseconds(java.lang.Long unixMilliseconds)
Set the specified Unix time at which the key will expire, in milliseconds. Equivalent toPXATin the Valkey API.- Parameters:
unixMilliseconds- TheUNIX TIMEto expire, in milliseconds.- Returns:
- The options specifying the given expiry.
-
Persist
public static GetExOptions Persist()
Remove the time to live associated with the key.
-
toArgs
public java.lang.String[] toArgs()
Converts GetExOptions into a String[] to pass to theGETEXcommand.- Returns:
- String[]
-
toGlideStringArgs
public GlideString[] toGlideStringArgs()
Converts GetExOptions into a GlideString[] to pass to theGETEXcommand.- Returns:
- GlideString[]
-
-