ARMGET

ARMGET key index [index ...]
Available since:
Redis Open Source 8.8.0
Time complexity:
O(N) where N is the number of indices
ACL categories:
@read, @array, @fast,
Compatibility:
Redis Software and Redis Cloud compatibility

Gets values at multiple indices in an array.

Required arguments

key

The name of the key that holds the array.

index

One or more zero-based integer indices of the elements to retrieve. The reply preserves the order of the requested indices and returns nil for any index that is not set.

Examples

ARMSET myarray 0 "a" 1 "b" 5 "c" ARMGET myarray 0 1 5 3

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
❌ Standard
❌ Active-Active
❌ Standard
❌ Active-Active

Return information

RATE THIS PAGE
Back to top ↑