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

ARSET myarray 0 "hello" ARGET myarray 0 ARGET myarray 1

Return information

One of the following:

RATE THIS PAGE
Back to top ↑