Class ZAddArgs

java.lang.Object
io.quarkus.redis.datasource.sortedset.ZAddArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class ZAddArgs extends Object implements RedisCommandExtraArguments
  • Constructor Details

    • ZAddArgs

      public ZAddArgs()
  • Method Details

    • nx

      public ZAddArgs nx()
      Only add new elements. Don't update already existing elements.
      Returns:
      the current ZAddArgs
    • xx

      public ZAddArgs xx()
      Only update elements that already exist. Don't add new elements.
      Returns:
      the current ZAddArgs
    • ch

      public ZAddArgs ch()
      Modify the return value from the number of new elements added, to the total number of elements changed (CH is an abbreviation of changed). Changed elements are new elements added and elements already existing for which the score was updated. So elements specified in the command line having the same score as they had in the past are not counted.
      Returns:
      the current ZAddArgs
    • lt

      public ZAddArgs lt()
      Only update existing elements if the new score is less than the current score. This flag doesn't prevent adding new elements.
      Returns:
      the current ZAddArgs
    • gt

      public ZAddArgs gt()
      Only update existing elements if the new score is greater than the current score. This flag doesn't prevent adding new elements.
      Returns:
      the current ZAddArgs
    • toArgs

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

      public void putFlag(List<Object> args, boolean value, String flag)