public class HGetExParams
extends java.lang.Object
This class includes the following methods:
hGetExParams() - Static factory method to create a new instance of HGetExParams.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.persist() - Remove the time-to-live associated with the key.Example usage:
HGetExParams params = HGetExParams.hGetExParams().persist();
BaseGetExParams| Constructor and Description |
|---|
HGetExParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
boolean |
equals(java.lang.Object o) |
T |
ex(long secondsToExpire)
Set the specified expire time, in seconds.
|
T |
exAt(long seconds)
Set the specified Unix time at which the key will expire, in seconds.
|
int |
hashCode() |
static HGetExParams |
hGetExParams() |
T |
persist()
Remove the time to live associated with the key.
|
T |
px(long millisecondsToExpire)
Set the specified expire time, in milliseconds.
|
T |
pxAt(long milliseconds)
Set the specified Unix time at which the key will expire, in milliseconds.
|
public static HGetExParams hGetExParams()
public T ex(long secondsToExpire)
public T px(long millisecondsToExpire)
public T exAt(long seconds)
seconds - public T pxAt(long milliseconds)
milliseconds - public T persist()
public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2025. All rights reserved.