Json

JSON.ARRLEN

Report the length of the JSON array at `path` in `key`.

Arguments

keybodystringrequired

The key of the json entry.

pathbodystringrequired

The path of the array. $ is the root.

Response

integer[]required

The length of the array.

Example
const length = await redis.json.arrlen("key", "$.path.to.array");
Loading search…