Class SetArgs

java.lang.Object
io.quarkus.redis.datasource.value.SetArgs
io.quarkus.redis.datasource.string.SetArgs
All Implemented Interfaces:
RedisCommandExtraArguments

@Deprecated public class SetArgs extends SetArgs implements RedisCommandExtraArguments
Deprecated.
Use SetArgs instead.
Argument list for the Redis SET command.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ex(long timeout)
    Deprecated.
    Set the specified expire time, in seconds.
    ex(Duration timeout)
    Deprecated.
    Sets the expiration.
    exAt(long timestamp)
    Deprecated.
    Sets the expiration time
    exAt(Instant timestamp)
    Deprecated.
    Sets the expiration time
    get()
    Deprecated.
    Return the old string stored at key, or nil if key did not exist.
    Deprecated.
    Set the value and retain the existing TTL.
    nx()
    Deprecated.
    Only set the key if it does not already exist.
    px(long timeout)
    Deprecated.
    Set the specified expire time, in milliseconds.
    px(Duration timeout)
    Deprecated.
    Set the specified expire time, in milliseconds.
    pxAt(long timestamp)
    Deprecated.
    Set the specified Unix time at which the key will expire, in milliseconds.
    pxAt(Instant timestamp)
    Deprecated.
    Set the specified Unix time at which the key will expire, in milliseconds.
    Deprecated.
     
    xx()
    Deprecated.
    Only set the key if it already exists.

    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
  • Constructor Details

    • SetArgs

      public SetArgs()
      Deprecated.
  • Method Details

    • ex

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

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

      public SetArgs exAt(long timestamp)
      Deprecated.
      Sets the expiration time
      Overrides:
      exAt in class SetArgs
      Parameters:
      timestamp - the timestamp
      Returns:
      the current GetExArgs
    • exAt

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

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

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

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

      public SetArgs pxAt(Instant timestamp)
      Deprecated.
      Set the specified Unix time at which the key will expire, in milliseconds.
      Overrides:
      pxAt in class SetArgs
      Parameters:
      timestamp - the timestamp
      Returns:
      the current SetArgs
    • nx

      public SetArgs nx()
      Deprecated.
      Only set the key if it does not already exist.
      Overrides:
      nx in class SetArgs
      Returns:
      the current SetArgs
    • keepttl

      public SetArgs keepttl()
      Deprecated.
      Set the value and retain the existing TTL.
      Overrides:
      keepttl in class SetArgs
      Returns:
      the current SetArgs
    • xx

      public SetArgs xx()
      Deprecated.
      Only set the key if it already exists.
      Overrides:
      xx in class SetArgs
      Returns:
      the current SetArgs
    • get

      public SetArgs get()
      Deprecated.
      Return the old string stored at key, or nil if key did not exist. An error is returned and SET aborted if the value stored at key is not a string.
      Overrides:
      get in class SetArgs
      Returns:
      the current SetArgs
    • toArgs

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