Package glide.api.models.commands
Class SetOptions.Expiry
- java.lang.Object
-
- glide.api.models.commands.SetOptions.Expiry
-
- Enclosing class:
- SetOptions
public static final class SetOptions.Expiry extends java.lang.ObjectConfiguration of value lifetime.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SetOptions.ExpiryKeepExisting()Retain the time to live associated with the key.static SetOptions.ExpiryMilliseconds(java.lang.Long milliseconds)Set the specified expire time, in milliseconds.static SetOptions.ExpirySeconds(java.lang.Long seconds)Set the specified expire time, in seconds.static SetOptions.ExpiryUnixMilliseconds(java.lang.Long unixMilliseconds)Set the specified Unix time at which the key will expire, in milliseconds.static SetOptions.ExpiryUnixSeconds(java.lang.Long unixSeconds)Set the specified Unix time at which the key will expire, in seconds.
-
-
-
Method Detail
-
KeepExisting
public static SetOptions.Expiry KeepExisting()
Retain the time to live associated with the key. Equivalent toKEEPTTLin the Valkey API.
-
Seconds
public static SetOptions.Expiry Seconds(java.lang.Long seconds)
Set the specified expire time, in seconds. Equivalent toEXin the Valkey API.- Parameters:
seconds- time to expire, in seconds- Returns:
- Expiry
-
Milliseconds
public static SetOptions.Expiry Milliseconds(java.lang.Long milliseconds)
Set the specified expire time, in milliseconds. Equivalent toPXin the Valkey API.- Parameters:
milliseconds- time to expire, in milliseconds- Returns:
- Expiry
-
UnixSeconds
public static SetOptions.Expiry 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-UNIX TIMEto expire, in seconds.- Returns:
- Expiry
-
UnixMilliseconds
public static SetOptions.Expiry 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-UNIX TIMEto expire, in milliseconds.- Returns:
- Expiry
-
-