Skip to main content

Arguments

key
str
required
The key of the json entry.
path
str
required
The path of the array.
value
TValue
required
The value to search for.
start
int
default:0
The start index.
stop
int
default:0
The stop index.

Response

The index of the first occurrence of the value in the array, or -1 if not found.
index = redis.json.arrindex("key", "$.path.to.array", "a")
I