Package io.quarkus.redis.datasource.keys
Class ExpireArgs
java.lang.Object
io.quarkus.redis.datasource.keys.ExpireArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongt()
Set the expiry only when the new expiry is greater than current onelt()
Sets the expiry only when the new expiry is less than current onenx()
Sets the expiry only when the key has no expiry.toArgs()
xx()
Sets the expiry only when the key has an existing expiryMethods 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
-
ExpireArgs
public ExpireArgs()
-
-
Method Details
-
xx
Sets the expiry only when the key has an existing expiry- Returns:
- the current
ExpireArgs
-
lt
Sets the expiry only when the new expiry is less than current one- Returns:
- the current
ExpireArgs
-
nx
Sets the expiry only when the key has no expiry.- Returns:
- the current
ExpireArgs
-
gt
Set the expiry only when the new expiry is greater than current one- Returns:
- the current
ExpireArgs
-
toArgs
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-