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 GetExArgs
ex(long timeout)
Set the specified expire time, in seconds.GetExArgs
ex(Duration timeout)
Sets the expiration.GetExArgs
exAt(long timestamp)
Sets the expiration timeGetExArgs
exAt(Instant timestamp)
Sets the expiration timeGetExArgs
persist()
SetsPERSIST
GetExArgs
px(long timeout)
Set the specified expire time, in milliseconds.GetExArgs
px(Duration timeout)
Set the specified expire time, in milliseconds.GetExArgs
pxAt(long timestamp)
Set the specified Unix time at which the key will expire, in milliseconds.GetExArgs
pxAt(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:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
-