Class GetExArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.value.GetExArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
- Direct Known Subclasses:
GetExArgs
public class GetExArgs extends Object implements RedisCommandExtraArguments
Argument list for the Redis GETEX command.
-
-
Constructor Summary
Constructors Constructor Description GetExArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetExArgsex(long timeout)Set the specified expire time, in seconds.GetExArgsex(Duration timeout)Sets the expiration.GetExArgsexAt(long timestamp)Sets the expiration timeGetExArgsexAt(Instant timestamp)Sets the expiration timeGetExArgspersist()SetsPERSISTGetExArgspx(long timeout)Set the specified expire time, in milliseconds.GetExArgspx(Duration timeout)Set the specified expire time, in milliseconds.GetExArgspxAt(long timestamp)Set the specified Unix time at which the key will expire, in milliseconds.GetExArgspxAt(Instant timestamp)Set the specified Unix time at which the key will expire, in milliseconds.List<String>toArgs()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
ex
public GetExArgs ex(long timeout)
Set the specified expire time, in seconds.- Parameters:
timeout- expire time in seconds.- Returns:
- the current
GetExArgs
-
ex
public GetExArgs ex(Duration timeout)
Sets the expiration.- Parameters:
timeout- expire time in seconds.- Returns:
- the current
GetExArgs
-
exAt
public GetExArgs exAt(long timestamp)
Sets the expiration time- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
exAt
public GetExArgs exAt(Instant timestamp)
Sets the expiration time- Parameters:
timestamp- the timestamp type: posix time in seconds.- Returns:
- the current
GetExArgs
-
px
public GetExArgs px(long timeout)
Set the specified expire time, in milliseconds.- Parameters:
timeout- expire time in milliseconds.- Returns:
- the current
GetExArgs
-
px
public GetExArgs px(Duration timeout)
Set the specified expire time, in milliseconds.- Parameters:
timeout- expire time in milliseconds.- Returns:
- the current
GetExArgs
-
pxAt
public GetExArgs pxAt(long timestamp)
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
pxAt
public GetExArgs pxAt(Instant timestamp)
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
persist
public GetExArgs persist()
SetsPERSIST- Returns:
- the current
GetExArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments, encoded as a list of String.
-
-