Arguments
str
required
The key of the json entry.
str
required
The path of the array.
$ is the root.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.arrpop("key", "$.path.to.array")
firstElement = redis.json.arrpop("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.
$ is the root.element = redis.json.arrpop("key", "$.path.to.array")
firstElement = redis.json.arrpop("key", "$.path.to.array", 0)
Was this page helpful?