Package redis.clients.jedis.params
Class SetParams
- java.lang.Object
-
- redis.clients.jedis.params.Params
-
- redis.clients.jedis.params.SetParams
-
public class SetParams extends Params
-
-
Constructor Summary
Constructors Constructor Description SetParams()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SetParamsex(int secondsToExpire)Set the specified expire time, in seconds.SetParamsget()Return the old value stored at key, or nil when key did not exist.byte[][]getByteParams(byte[]... args)SetParamskeepttl()Retain the time to live associated with the key.SetParamsnx()Only set the key if it does not already exist.SetParamspx(long millisecondsToExpire)Set the specified expire time, in milliseconds.static SetParamssetParams()SetParamsxx()Only set the key if it already exist.
-
-
-
Method Detail
-
setParams
public static SetParams setParams()
-
ex
public SetParams ex(int secondsToExpire)
Set the specified expire time, in seconds.- Parameters:
secondsToExpire-- Returns:
- SetParams
-
px
public SetParams px(long millisecondsToExpire)
Set the specified expire time, in milliseconds.- Parameters:
millisecondsToExpire-- Returns:
- SetParams
-
nx
public SetParams nx()
Only set the key if it does not already exist.- Returns:
- SetParams
-
xx
public SetParams xx()
Only set the key if it already exist.- Returns:
- SetParams
-
keepttl
public SetParams keepttl()
Retain the time to live associated with the key.- Returns:
- SetParams
-
get
public SetParams get()
Return the old value stored at key, or nil when key did not exist.- Returns:
- SetParams
-
getByteParams
public byte[][] getByteParams(byte[]... args)
-
-