Class LPosArgs

java.lang.Object
io.quarkus.redis.datasource.list.LPosArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class LPosArgs extends Object implements RedisCommandExtraArguments
Represents the extra parameter of the LPOS command
  • Constructor Details

    • LPosArgs

      public LPosArgs()
  • Method Details

    • rank

      public LPosArgs rank(long rank)
      The RANK option specifies the "rank" of the first element to return, in case there are multiple matches.
      Parameters:
      rank - the rank value, can be negative
      Returns:
      the current LPosArgs
    • maxlen

      public LPosArgs maxlen(long max)
      the MAXLEN option tells the command to compare the provided element only with a given maximum number of list items. So for instance specifying MAXLEN 1000 will make sure that the command performs only 1000 comparisons, effectively running the algorithm on a subset of the list.
      Parameters:
      max - the max value, must be positive
      Returns:
      the current LPosArgs
    • toArgs

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