public class LPosArgs extends Object implements CompositeArgument
LPosArgs.Builder and call the methods: maxlen(…) .
LPosArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
LPosArgs.Builder
Builder entry points for
LPosArgs. |
| Constructor and Description |
|---|
LPosArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
LPosArgs |
first(long rank)
Deprecated.
since 5.3.4, the option was renamed in Redis. Use
rank(long) instead. |
LPosArgs |
maxlen(long maxlen)
Limit list scanning to
maxlen entries. |
LPosArgs |
rank(long rank)
Specify the rank of the first element to return, in case there are multiple matches.
|
public LPosArgs maxlen(long maxlen)
maxlen entries.maxlen - number greater 0.this.@Deprecated public LPosArgs first(long rank)
rank(long) instead.rank - number.this.public LPosArgs rank(long rank)
rank - number.this.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 © 2020 lettuce.io. All rights reserved.