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
-
Method Summary
Modifier and TypeMethodDescriptionex
(long timeout) Set the specified expire time, in seconds.Sets the expiration.exAt
(long timestamp) Sets the expiration timeSets the expiration timepersist()
SetsPERSIST
px
(long timeout) Set the specified expire time, in milliseconds.Set the specified expire time, in milliseconds.pxAt
(long timestamp) Set the specified Unix time at which the key will expire, in milliseconds.Set the specified Unix time at which the key will expire, in milliseconds.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
-
Constructor Details
-
GetExArgs
public GetExArgs()
-
-
Method Details
-
ex
Set the specified expire time, in seconds.- Parameters:
timeout
- expire time in seconds.- Returns:
- the current
GetExArgs
-
ex
Sets the expiration.- Parameters:
timeout
- expire time in seconds.- Returns:
- the current
GetExArgs
-
exAt
Sets the expiration time- Parameters:
timestamp
- the timestamp- Returns:
- the current
GetExArgs
-
exAt
Sets the expiration time- Parameters:
timestamp
- the timestamp type: posix time in seconds.- Returns:
- the current
GetExArgs
-
px
Set the specified expire time, in milliseconds.- Parameters:
timeout
- expire time in milliseconds.- Returns:
- the current
GetExArgs
-
px
Set the specified expire time, in milliseconds.- Parameters:
timeout
- expire time in milliseconds.- Returns:
- the current
GetExArgs
-
pxAt
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
timestamp
- the timestamp- Returns:
- the current
GetExArgs
-
pxAt
Set the specified Unix time at which the key will expire, in milliseconds.- Parameters:
timestamp
- the timestamp- Returns:
- the current
GetExArgs
-
persist
SetsPERSIST
- Returns:
- the current
GetExArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-