java.lang.Object
io.lettuce.core.GeoAddArgs
- All Implemented Interfaces:
CompositeArgument
public class GeoAddArgs extends Object implements CompositeArgument
Argument list builder for the Redis GEOADD command starting from Redis 6.2.
Static import the methods from
GeoAddArgs.Builder and call the methods: xx() or nx() .
GeoAddArgs is a mutable object and instances should be used only once to avoid shared mutable state.
- Since:
- 6.1
- Author:
- Mark Paluch
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeoAddArgs.BuilderBuilder entry points forScanArgs. -
Constructor Summary
Constructors Constructor Description GeoAddArgs() -
Method Summary
Modifier and Type Method Description <K, V> voidbuild(CommandArgs<K,V> args)Build command arguments and contribute arguments toCommandArgs.GeoAddArgsch()Modify the return value from the number of new elements added, to the total number of elements changed.GeoAddArgsnx()Don't update already existing elements.GeoAddArgsxx()Only update elements that already exist.
-
Constructor Details
-
GeoAddArgs
public GeoAddArgs()
-
-
Method Details
-
nx
Don't update already existing elements. Always add new elements.- Returns:
thisGeoAddArgs.
-
xx
Only update elements that already exist. Never add elements.- Returns:
thisGeoAddArgs.
-
ch
Modify the return value from the number of new elements added, to the total number of elements changed.- Returns:
thisGeoAddArgs.
-
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.
-