public class HSetExParams
extends java.lang.Object
This class includes the following methods:
hSetExParams() - Static factory method to create a new instance of HSetExParams.fnx() - Sets the condition to only set the key if it does not already exist.fxx() - Sets the condition to only set the key if it already exists.ex(long) - Set the specified expire time, in seconds.px(long) - Set the specified expire time, in milliseconds.exAt(long) - Set the specified Unix(epoch) time at which the key will expire, in seconds.pxAt(long) - Set the specified Unix(epoch) time at which the key will expire, in milliseconds.keepTtl() - Retain the time to live associated with the key.Example usage:
HSetExParams params = HSetExParams.hSetExParams().fnx();
BaseSetExParams| Constructor and Description |
|---|
HSetExParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
boolean |
equals(java.lang.Object o) |
T |
ex(long remainingSeconds)
Set the specified expire time, in seconds.
|
T |
exAt(long timestampSeconds)
Set the specified Unix time at which the key will expire, in seconds.
|
HSetExParams |
fnx()
Only set the key if it does not already exist.
|
HSetExParams |
fxx()
Only set the key if it already exist.
|
int |
hashCode() |
static HSetExParams |
hSetExParams() |
T |
keepttl()
Deprecated.
Use
BaseSetExParams.keepTtl(). |
T |
keepTtl()
Retain the time to live associated with the key.
|
T |
px(long remainingMilliseconds)
Set the specified expire time, in milliseconds.
|
T |
pxAt(long timestampMilliseconds)
Set the specified Unix time at which the key will expire, in milliseconds.
|
public static HSetExParams hSetExParams()
public HSetExParams fnx()
public HSetExParams fxx()
public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
public int hashCode()
public T ex(long remainingSeconds)
remainingSeconds - public T px(long remainingMilliseconds)
remainingMilliseconds - public T exAt(long timestampSeconds)
timestampSeconds - public T pxAt(long timestampMilliseconds)
timestampMilliseconds - @Deprecated public T keepttl()
BaseSetExParams.keepTtl().public T keepTtl()
Copyright © 2025. All rights reserved.