Arguments
str
required
The key of the json entry.
str
The path of the array.
int
The index of the element to pop.
Response
The popped element or null if the array is empty.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
element = redis.json("key", "$.path.to.array")
firstElement = redis.json("key", "$.path.to.array", 0)
Remove and return an element from the index in the array. By default the last element from an array is popped.
element = redis.json("key", "$.path.to.array")
firstElement = redis.json("key", "$.path.to.array", 0)
Was this page helpful?