Class GetExArgs
java.lang.Object
io.quarkus.redis.datasource.value.GetExArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
- Direct Known Subclasses:
GetExArgs
Argument list for the Redis GETEX command.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionex(long timeout) Set the expiration timeout, in seconds.Set the expiration timeout, in seconds.exAt(long timestamp) Set the expiration timestamp as a number of seconds since the Unix epoch.Set the expiration timestamp as a number of seconds since the Unix epoch.persist()SetPERSIST.px(long timeout) Set the expiration timeout, in milliseconds.Set the expiration timeout, in milliseconds.pxAt(long timestamp) Set the expiration timestamp as a number of milliseconds since the Unix epoch.Set the expiration timestamp as a number of milliseconds since the Unix epoch.toArgs()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
Constructor Details
-
GetExArgs
public GetExArgs()
-
-
Method Details
-
ex
Set the expiration timeout, in seconds.- Parameters:
timeout- expiration timeout in seconds- Returns:
- the current
GetExArgs
-
ex
Set the expiration timeout, in seconds.- Parameters:
timeout- expiration timeout in seconds- Returns:
- the current
GetExArgs
-
exAt
Set the expiration timestamp as a number of seconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
exAt
Set the expiration timestamp as a number of seconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
px
Set the expiration timeout, in milliseconds.- Parameters:
timeout- expiration timeout in milliseconds- Returns:
- the current
GetExArgs
-
px
Set the expiration timeout, in milliseconds.- Parameters:
timeout- expiration timeout in milliseconds- Returns:
- the current
GetExArgs
-
pxAt
Set the expiration timestamp as a number of milliseconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
pxAt
Set the expiration timestamp as a number of milliseconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
GetExArgs
-
persist
SetPERSIST.- Returns:
- the current
GetExArgs
-
toArgs
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-