Json
JSON.SET
Set the JSON value at path in key.
Arguments
keybodystrrequired
The key of the json entry.
pathbodystrrequired
The path of the value to set.
valuebodyTValuerequired
The value to set.
nxbodybooleandefault: None
Sets the value at path only if it does not exist.
xxbodybooleandefault: None
Sets the value at path only if it does exist.
Response
truerequired
Returns true if the value was set.
Example
redis.json.set(key, "$.path", value)NX
value = ...redis.json.set(key, "$.path", value, nx=true)XX
value = ...redis.json.set(key, "$.path", value, xx=true)