Package io.quarkus.redis.datasource.keys
Class ExpireArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.keys.ExpireArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class ExpireArgs extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description ExpireArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExpireArgs
gt()
Set the expiry only when the new expiry is greater than current oneExpireArgs
lt()
Sets the expiry only when the new expiry is less than current oneExpireArgs
nx()
Sets the expiry only when the key has no expiry.List<String>
toArgs()
ExpireArgs
xx()
Sets the expiry only when the key has an existing expiry-
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
-
xx
public ExpireArgs xx()
Sets the expiry only when the key has an existing expiry- Returns:
- the current
ExpireArgs
-
lt
public ExpireArgs lt()
Sets the expiry only when the new expiry is less than current one- Returns:
- the current
ExpireArgs
-
nx
public ExpireArgs nx()
Sets the expiry only when the key has no expiry.- Returns:
- the current
ExpireArgs
-
gt
public ExpireArgs gt()
Set the expiry only when the new expiry is greater than current one- Returns:
- the current
ExpireArgs
-
toArgs
public List<String> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
-