java.lang.Object
io.lettuce.core.LPosArgs
- All Implemented Interfaces:
CompositeArgument
public class LPosArgs extends Object implements CompositeArgument
Argument list builder for the Redis LPOS command. Static import the methods from
LPosArgs.Builder and call the methods: maxlen(…) .
LPosArgs is a mutable object and instances should be used only once to avoid shared mutable state.
- Since:
- 5.3.2
- Author:
- Mark Paluch
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLPosArgs.BuilderBuilder entry points forLPosArgs. -
Constructor Summary
Constructors Constructor Description LPosArgs() -
Method Summary
Modifier and Type Method Description <K, V> voidbuild(CommandArgs<K,V> args)Build command arguments and contribute arguments toCommandArgs.LPosArgsmaxlen(long maxlen)Limit list scanning tomaxlenentries.LPosArgsrank(long rank)Specify the rank of the first element to return, in case there are multiple matches.
-
Constructor Details
-
LPosArgs
public LPosArgs()
-
-
Method Details
-
maxlen
Limit list scanning tomaxlenentries.- Parameters:
maxlen- number greater 0.- Returns:
this
-
rank
Specify the rank of the first element to return, in case there are multiple matches.- Parameters:
rank- number.- Returns:
this
-
build
Description copied from interface:CompositeArgumentBuild command arguments and contribute arguments toCommandArgs.Implementing classes are required to implement this method. Depending on the command nature and configured arguments, this method may contribute arguments but is not required to add arguments if none are specified.
- Specified by:
buildin interfaceCompositeArgument- Type Parameters:
K- Key type.V- Value type.- Parameters:
args- the command arguments, must not benull.
-