MSET
Since 1.1.0Strings
Syntax
MSET key value [key value ...]Sets several keys to string values in one step. Existing values are replaced, and their expiries removed.
Reply
OK;MSETdoes not fail for a key's existing value or type.- A wrong-number-of-arguments error if the keys and values do not pair up.
Examples
> MSET a 1 b 2
OK
> MGET a b
1) "1"
2) "2"
Keys in different shards of the store no longer queue behind each other: since 1.2, MSET and MSETNX of 10 keys do more than three times as many commands a second as in 1.1.3 with 1,200 clients, with a lower tail latency.