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
Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ❌ Standard |
❌ Standard |