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

Arguments

key
string
required

The key of the json entry.

path
string
default:
"$"

The path of the array.

Response

The length of the array.

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