Package io.quarkus.redis.datasource.list
Class LPosArgs
java.lang.Object
io.quarkus.redis.datasource.list.LPosArgs
- All Implemented Interfaces:
RedisCommandExtraArguments
Represents the extra parameter of the LPOS command
-
Constructor Details
-
LPosArgs
public LPosArgs()
-
-
Method Details
-
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
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
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments.
-