public class SetParams
extends java.lang.Object
| Constructor and Description |
|---|
SetParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
boolean |
equals(java.lang.Object o) |
SetParams |
ex(long remainingSeconds)
Set the specified expire time, in seconds.
|
SetParams |
exAt(long timestampSeconds)
Set the specified Unix time at which the key will expire, in seconds.
|
int |
hashCode() |
SetParams |
keepttl()
Deprecated.
Since 6.1.0 use
keepTtl() instead. |
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 remainingMilliseconds)
Set the specified expire time, in milliseconds.
|
SetParams |
pxAt(long timestampMilliseconds)
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 nx()
public SetParams xx()
public SetParams ex(long remainingSeconds)
remainingSeconds - public SetParams px(long remainingMilliseconds)
remainingMilliseconds - public SetParams exAt(long timestampSeconds)
timestampSeconds - public SetParams pxAt(long timestampMilliseconds)
timestampMilliseconds - public SetParams keepttl()
keepTtl() instead.public SetParams keepTtl()
public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
public int hashCode()
Copyright © 2025. All rights reserved.