| Constructor and Description |
|---|
SetParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
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()
Deprecated.
Use
setGet method (without setting get(). |
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.
|
public static SetParams setParams()
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()
@Deprecated public SetParams get()
setGet method (without setting get().public void addParams(CommandArguments args)
Copyright © 2023. All rights reserved.