Class GetExArgs

java.lang.Object
io.quarkus.redis.datasource.value.GetExArgs
All Implemented Interfaces:
RedisCommandExtraArguments
Direct Known Subclasses:
GetExArgs

public class GetExArgs extends Object implements RedisCommandExtraArguments
Argument list for the Redis GETEX command.
  • Constructor Details

    • GetExArgs

      public GetExArgs()
  • Method Details

    • ex

      public GetExArgs ex(long timeout)
      Set the specified expire time, in seconds.
      Parameters:
      timeout - expire time in seconds.
      Returns:
      the current GetExArgs
    • ex

      public GetExArgs ex(Duration timeout)
      Sets the expiration.
      Parameters:
      timeout - expire time in seconds.
      Returns:
      the current GetExArgs
    • exAt

      public GetExArgs exAt(long timestamp)
      Sets the expiration time
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • exAt

      public GetExArgs exAt(Instant timestamp)
      Sets the expiration time
      Parameters:
      timestamp - the timestamp type: posix time in seconds.
      Returns:
      the current GetExArgs
    • px

      public GetExArgs px(long timeout)
      Set the specified expire time, in milliseconds.
      Parameters:
      timeout - expire time in milliseconds.
      Returns:
      the current GetExArgs
    • px

      public GetExArgs px(Duration timeout)
      Set the specified expire time, in milliseconds.
      Parameters:
      timeout - expire time in milliseconds.
      Returns:
      the current GetExArgs
    • pxAt

      public GetExArgs pxAt(long timestamp)
      Set the specified Unix time at which the key will expire, in milliseconds.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • pxAt

      public GetExArgs pxAt(Instant timestamp)
      Set the specified Unix time at which the key will expire, in milliseconds.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • persist

      public GetExArgs persist()
      Sets PERSIST
      Returns:
      the current GetExArgs
    • toArgs

      public List<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.