Package redis.clients.jedis.params
Class GetExParams
- java.lang.Object
-
- redis.clients.jedis.params.GetExParams
-
public class GetExParams extends java.lang.ObjectParameters for GETEX command. Provides methods to set expiration options for the GETEX command.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetExParams.ExpiryType
-
Constructor Summary
Constructors Constructor Description GetExParams()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GetExParamsex(long seconds)Set the specified expire time, in seconds.GetExParamsexAt(long unixTimeSeconds)Set the specified Unix time at which the key will expire, in seconds.static GetExParamsgetExParams()GetExParams.ExpiryTypegetExpirationType()Get the expiration type.java.lang.LonggetExpirationValue()Get the expiration value.GetExParamspersist()Remove the time to live associated with the key.GetExParamspx(long milliseconds)Set the specified expire time, in milliseconds.GetExParamspxAt(long unixTimeMilliseconds)Set the specified Unix time at which the key will expire, in milliseconds.
-
-
-
Method Detail
-
getExParams
public static GetExParams getExParams()
-
ex
public GetExParams ex(long seconds)
Set the specified expire time, in seconds.- Parameters:
seconds- seconds to expire- Returns:
- GetExParams instance
-
px
public GetExParams px(long milliseconds)
Set the specified expire time, in milliseconds.- Parameters:
milliseconds- milliseconds to expire- Returns:
- GetExParams instance
-
exAt
public GetExParams exAt(long unixTimeSeconds)
Set the specified Unix time at which the key will expire, in seconds.- Parameters:
unixTimeSeconds- unix timestamp in seconds- Returns:
- GetExParams instance
-
pxAt
public GetExParams pxAt(long unixTimeMilliseconds)
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
unixTimeMilliseconds- unix timestamp in milliseconds- Returns:
- GetExParams instance
-
persist
public GetExParams persist()
Remove the time to live associated with the key.- Returns:
- GetExParams instance
-
getExpirationType
public GetExParams.ExpiryType getExpirationType()
Get the expiration type.- Returns:
- expiration type
-
getExpirationValue
public java.lang.Long getExpirationValue()
Get the expiration value.- Returns:
- expiration value
-
-