Class JsonSetCondition
java.lang.Object
org.springframework.data.redis.connection.json.JsonSetCondition
Condition for
JSON.SET command.- Since:
- 4.2
- Author:
- Yordan Tsintsov, Mark Paluch
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCondition forJSON.SETcommand path presence. -
Method Summary
Modifier and TypeMethodDescriptionGet the path condition.static JsonSetConditionPerform theJSON.SEToperation only if the path exists.static JsonSetConditionPerform theJSON.SEToperation only if the path does not exist.static JsonSetConditionupsert()Do not set any additional command argument.
-
Method Details
-
upsert
Do not set any additional command argument. -
ifPathNotExists
Perform theJSON.SEToperation only if the path does not exist. -
ifPathExists
Perform theJSON.SEToperation only if the path exists. -
getPathCondition
Get the path condition.- Returns:
- the path condition.
-