Package redis.clients.jedis.params
Class GetExParams
java.lang.Object
redis.clients.jedis.params.Params
redis.clients.jedis.params.GetExParams
- All Implemented Interfaces:
IParams
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParams(CommandArguments args) ex(long secondsToExpire) Set the specified expire time, in seconds.exAt(long seconds) Set the specified Unix time at which the key will expire, in seconds.static GetExParamspersist()Remove the time to live associated with the key.px(long millisecondsToExpire) Set the specified expire time, in milliseconds.pxAt(long milliseconds) Set the specified Unix time at which the key will expire, in milliseconds.
-
Field Details
-
PX
- See Also:
-
EX
- See Also:
-
EXAT
- See Also:
-
PXAT
- See Also:
-
PERSIST
- See Also:
-
-
Constructor Details
-
GetExParams
public GetExParams()
-
-
Method Details
-
getExParams
-
ex
Set the specified expire time, in seconds.- Returns:
- GetExParams
-
px
Set the specified expire time, in milliseconds.- Returns:
- GetExParams
-
exAt
Set the specified Unix time at which the key will expire, in seconds.- Parameters:
seconds-- Returns:
- GetExParams
-
pxAt
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
milliseconds-- Returns:
- GetExParams
-
persist
Remove the time to live associated with the key.- Returns:
- GetExParams
-
addParams
-