public class JsonSetArgs extends Object implements CompositeArgument
JsonSetArgs is a mutable object and instances should be used only once to avoid shared mutable state.
| Modifier and Type | Class and Description |
|---|---|
static class |
JsonSetArgs.Builder
Builder entry points for
JsonSetArgs. |
static class |
JsonSetArgs.FphaType
Floating-point homogeneous array type for the FPHA block of the JSON.SET command.
|
| Constructor and Description |
|---|
JsonSetArgs() |
| Modifier and Type | Method and Description |
|---|---|
<K,V> void |
build(CommandArgs<K,V> args)
Build command arguments and contribute arguments to
CommandArgs. |
JsonSetArgs |
defaults()
Set the key only if it already exists.
|
JsonSetArgs |
fpha(JsonSetArgs.FphaType fphaType)
Set the floating-point homogeneous array type for encoding numeric arrays.
|
JsonSetArgs |
nx()
Set the key only if it does not already exist.
|
JsonSetArgs |
xx()
Set the key only if it already exists.
|
public JsonSetArgs nx()
this.public JsonSetArgs xx()
this.public JsonSetArgs fpha(JsonSetArgs.FphaType fphaType)
fphaType - the floating-point homogeneous array type.this.public JsonSetArgs defaults()
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 © 2026 lettuce.io. All rights reserved.