Package redis.clients.jedis.params
Class SetParams
java.lang.Object
redis.clients.jedis.params.Params
redis.clients.jedis.params.SetParams
- 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.get()Deprecated.keepttl()Retain the time to live associated with the key.nx()Only set the key if it does not already exist.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.static SetParamsxx()Only set the key if it already exist.
-
Field Details
-
XX
- See Also:
-
NX
- See Also:
-
PX
- See Also:
-
EX
- See Also:
-
EXAT
- See Also:
-
PXAT
- See Also:
-
KEEPTTL
- See Also:
-
GET
- See Also:
-
-
Constructor Details
-
SetParams
public SetParams()
-
-
Method Details
-
setParams
-
ex
Set the specified expire time, in seconds.- Parameters:
secondsToExpire-- Returns:
- SetParams
-
px
Set the specified expire time, in milliseconds.- Parameters:
millisecondsToExpire-- Returns:
- SetParams
-
nx
Only set the key if it does not already exist.- Returns:
- SetParams
-
xx
Only set the key if it already exist.- Returns:
- SetParams
-
exAt
Set the specified Unix time at which the key will expire, in seconds.- Parameters:
seconds-- Returns:
- SetParams
-
pxAt
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
milliseconds-- Returns:
- SetParams
-
keepttl
Retain the time to live associated with the key.- Returns:
- SetParams
-
get
Deprecated.UsesetGetmethod (without settingget().Return the old value stored at key, or nil when key did not exist.- Returns:
- SetParams
-
addParams
-
setGetmethod (without settingget().