ARMSET
ARMSET key index value [index value ...]
- Available since:
- Redis Open Source 8.8.0
- Time complexity:
- O(N) where N is the number of pairs
- ACL categories:
-
ARRAY,
Sets multiple index-value pairs in an array.
Required arguments
key
The name of the key that holds the array.
data
One or more index value pairs. Each index is a zero-based integer specifying where to write, and each value is the string to store at that position. Pairs may be non-contiguous and in any order.
Examples
Return information
Integer reply: Number of new slots that were set (previously empty).