ARGET
ARGET key index
- Available since:
- Redis Open Source 8.8.0
- Time complexity:
- O(1)
- ACL categories:
-
ARRAY,
Gets the value at an index in an array.
Required arguments
key
The name of the key that holds the array.
index
The zero-based integer index of the element to retrieve.
Examples
Return information
One of the following:
- Bulk string reply: The value at the given index.
- Nil reply: Null reply if key or index does not exist.