Redis MSET 命令用于为多个键设置多个值。
简单的字符串回复确定。
以下是Redis MSET 命令的基本语法。
redis 127.0.0.1:6379> MSET key1 value1 key2 value2 .. keyN valueN
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"
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)