Json
JSON.CLEAR
Clear container values (arrays/objects) and set numeric values to 0.
Arguments
keybodystringrequired
The key of the json entry.
pathbodystringrequired
The path to clear. $ is the root.
Response
integer[]required
How many values were cleared.
Example
await redis.json.clear("key");With path
await redis.json.clear("key", "$.my.key");