Class ExpireArgs

java.lang.Object
io.quarkus.redis.datasource.keys.ExpireArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class ExpireArgs extends Object implements RedisCommandExtraArguments
Argument for the Redis EXPIRE and EXPIREAT commands.
  • Constructor Details

    • ExpireArgs

      public ExpireArgs()
  • Method Details

    • 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:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.