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