Arguments
string
required
The key of the json entry.
string
The path of the array.
number
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.
const element = await redis.json("key", "$.path.to.array");
const firstElement = await 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.
const element = await redis.json("key", "$.path.to.array");
const firstElement = await redis.json("key", "$.path.to.array", 0);
Was this page helpful?