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 expiration timeout, in seconds.
      Parameters:
      timeout - expiration timeout in seconds
      Returns:
      the current GetExArgs
    • ex

      public GetExArgs ex(Duration timeout)
      Set the expiration timeout, in seconds.
      Parameters:
      timeout - expiration timeout in seconds
      Returns:
      the current GetExArgs
    • exAt

      public GetExArgs exAt(long timestamp)
      Set the expiration timestamp as a number of seconds since the Unix epoch.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • exAt

      public GetExArgs exAt(Instant timestamp)
      Set the expiration timestamp as a number of seconds since the Unix epoch.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • px

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

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

      public GetExArgs pxAt(long timestamp)
      Set the expiration timestamp as a number of milliseconds since the Unix epoch.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • pxAt

      public GetExArgs pxAt(Instant timestamp)
      Set the expiration timestamp as a number of milliseconds since the Unix epoch.
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • persist

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

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