Redis MSET command is used to set multiple values to multiple keys.
Return Value
Simple string reply OK.
Syntax
Following is the basic syntax of Redis MSET command.
redis 127.0.0.1:6379> MSET key1 value1 key2 value2 .. keyN valueN
Example
redis 127.0.0.1:6379> MSET key1 "Hello" key2 "World" OK redis 127.0.0.1:6379> GET key1 "Hello" redis 127.0.0.1:6379> GET key2 1) "World"