public class LMovemArgs extends Object implements CompositeArgument
LMovemArgs.Builder and chain the
method calls: leftRight().count(2, Ordering.BULK).
Directions (LEFT/RIGHT) are mandatory. The COUNT/EXACTLY block is optional; when applied it
requires an LMovemArgs.Ordering (OBO or BULK). Without a count block LMOVEM and BLMOVEM are
equivalent to LMOVE and BLMOVE.
| Modifier and Type | Class and Description |
|---|---|
static class |
LMovemArgs.Builder
Builder entry points for
LMovemArgs. |
static class |
LMovemArgs.Ordering
Ordering in which the moved elements are popped from the source and pushed to the destination.
|
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
LMovemArgs |
count(long count,
LMovemArgs.Ordering ordering)
Move up-to
count elements. |
LMovemArgs |
exactly(long count,
LMovemArgs.Ordering ordering)
Move exactly
count elements or return an empty list if the source list does not have enough elements. |
public LMovemArgs count(long count, LMovemArgs.Ordering ordering)
count elements. Follows the same semantics as the count parameter of LPOP.count - the maximum number of elements to move.ordering - the LMovemArgs.Ordering in which the elements are moved, must not be null.this LMovemArgs.public LMovemArgs exactly(long count, LMovemArgs.Ordering ordering)
count elements or return an empty list if the source list does not have enough elements.count - the exact number of elements to move.ordering - the LMovemArgs.Ordering in which the elements are moved, must not be null.this LMovemArgs.public <K,V> void build(CommandArgs<K,V> args)
CompositeArgumentCommandArgs.
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.
build in interface CompositeArgumentK - Key type.V - Value type.args - the command arguments, must not be null.Copyright © 2026 lettuce.io. All rights reserved.