Redis MSET令

1年前 (2024-04-27)
Redis MSET  令用于同时设置一个或多个 key-value 键值对。

可用版本

MSET 令可用版本:>= 1.0.1

语法

Redis MSET 令的基本语法如下:

 MSET key value [key value ...]   

返回值

返回 OK

令演示

127.0.0.1:6379> MSET test "this is my site" site "hello www.biancheng网站站点" rel="nofollow" />