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 ExpireArgsgt()Set the expiry only when the new expiry is greater than current oneExpireArgslt()Sets the expiry only when the new expiry is less than current oneExpireArgsnx()Sets the expiry only when the key has no expiry.List<Object>toArgs()ExpireArgsxx()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<Object> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments.
-
-