public class LcsArgs extends Object implements CompositeArgument
LcsArgs.Builder and call the methods.
LcsArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
LcsArgs.Builder
Builder entry points for
LcsArgs. |
| Constructor and Description |
|---|
LcsArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
LcsArgs |
by(String... keys)
Deprecated.
since 7.8, pass the keys to
RedisStringCommands.lcs(Object, Object, LcsArgs)
instead; scheduled for removal in a future major release. Keys set through this method are encoded as plain
strings and not through the key codec, so they neither work with non-String key codecs nor
participate in Redis Cluster slot routing. |
boolean |
isWithIdx() |
LcsArgs |
justLen()
Request just the length of the match for results.
|
LcsArgs |
minMatchLen(int minMatchLen)
Restrict the list of matches to the ones of a given minimal length.
|
LcsArgs |
withIdx()
Request match position in each string for results.
|
LcsArgs |
withMatchLen()
Request match len for results.
|
public LcsArgs minMatchLen(int minMatchLen)
this LcsArgs.public LcsArgs justLen()
this LcsArgs.public LcsArgs withIdx()
this LcsArgs.@Deprecated public LcsArgs by(String... keys)
RedisStringCommands.lcs(Object, Object, LcsArgs)
instead; scheduled for removal in a future major release. Keys set through this method are encoded as plain
strings and not through the key codec, so they neither work with non-String key codecs nor
participate in Redis Cluster slot routing.keys - the keys, must not be empty.this LcsArgs.IllegalArgumentException - if keys is null or empty.public boolean isWithIdx()
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.