public interface CompositeArgument
CompositeArgument
consolidate multiple
arguments for a particular Redis command in to one type and reduce the amount of individual arguments passed in a method
signature.
Command builder call build(CommandArgs)
during command construction to contribute command arguments for command
invocation. A composite argument is usually stateless as it can be reused multiple times by different commands.
CommandArgs
,
SetArgs
,
ZAggregateArgs
,
GeoArgs
Modifier and Type | Method and Description |
---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs . |
<K,V> void build(CommandArgs<K,V> args)
CommandArgs
.
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.
K
- Key type.V
- Value type.args
- the command arguments, must not be null
.Copyright © 2023 lettuce.io. All rights reserved.