Class SetArgs
java.lang.Object
io.quarkus.redis.datasource.value.SetArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
- Direct Known Subclasses:
SetArgs
Argument list for the Redis SET 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.get()Return the old string stored at key, or nil if key did not exist.keepttl()Set the value and retain the existing TTL.nx()Only set the key if it does not already exist.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()xx()Only set the key if it already exists.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
-
SetArgs
public SetArgs()
-
-
Method Details
-
ex
Set the expiration timeout, in seconds.- Parameters:
timeout- expiration timeout in seconds- Returns:
- the current
SetArgs
-
ex
Set the expiration timeout, in seconds.- Parameters:
timeout- expiration timeout in seconds- Returns:
- the current
SetArgs
-
exAt
Set the expiration timestamp as a number of seconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
SetArgs
-
exAt
Set the expiration timestamp as a number of seconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
SetArgs
-
px
Set the expiration timeout, in milliseconds.- Parameters:
timeout- expiration timeout in milliseconds- Returns:
- the current
SetArgs
-
px
Set the expiration timeout, in milliseconds.- Parameters:
timeout- expiration timeout in milliseconds- Returns:
- the current
SetArgs
-
pxAt
Set the expiration timestamp as a number of milliseconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
SetArgs
-
pxAt
Set the expiration timestamp as a number of milliseconds since the Unix epoch.- Parameters:
timestamp- the timestamp- Returns:
- the current
SetArgs
-
nx
Only set the key if it does not already exist.- Returns:
- the current
SetArgs
-
keepttl
Set the value and retain the existing TTL.- Returns:
- the current
SetArgs
-
xx
Only set the key if it already exists.- Returns:
- the current
SetArgs
-
get
Return the old string stored at key, or nil if key did not exist. An error is returned and SET aborted if the value stored at key is not a string.- Returns:
- the current
SetArgs
-
toArgs
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-