ARNEXT
ARNEXT key
- Available since:
- Redis Open Source 8.8.0
- Time complexity:
- O(1)
- ACL categories:
-
ARRAY,
Returns the next index ARINSERT would use.
Required arguments
key
The name of the key that holds the array.
Examples
Return information
One of the following:
- Integer reply: The next index ARINSERT would use. Returns 0 for missing keys or when no insert happened yet.
- Nil reply: Null when the insertion cursor is exhausted (next insert would overflow).