public class SetParams extends Params
构造器和说明 |
---|
SetParams() |
限定符和类型 | 方法和说明 |
---|---|
SetParams |
ex(int secondsToExpire)
已过时。
Use
ex(long) . |
SetParams |
ex(long secondsToExpire)
Set the specified expire time, in seconds.
|
SetParams |
exAt(long seconds)
Set the specified Unix time at which the key will expire, in seconds.
|
SetParams |
get()
Return the old value stored at key, or nil when key did not exist.
|
byte[][] |
getByteParams(byte[]... args) |
SetParams |
keepttl()
Retain the time to live associated with the key.
|
SetParams |
nx()
Only set the key if it does not already exist.
|
SetParams |
px(long millisecondsToExpire)
Set the specified expire time, in milliseconds.
|
SetParams |
pxAt(long milliseconds)
Set the specified Unix time at which the key will expire, in milliseconds.
|
static SetParams |
setParams() |
SetParams |
xx()
Only set the key if it already exist.
|
getByteParams, getParam, toString
public static SetParams setParams()
@Deprecated public SetParams ex(int secondsToExpire)
ex(long)
.secondsToExpire
- public SetParams ex(long secondsToExpire)
secondsToExpire
- public SetParams px(long millisecondsToExpire)
millisecondsToExpire
- public SetParams nx()
public SetParams xx()
public SetParams exAt(long seconds)
seconds
- public SetParams pxAt(long milliseconds)
milliseconds
- public SetParams keepttl()
public SetParams get()
public byte[][] getByteParams(byte[]... args)