小白教程
所有教程
关于
Search
172.70.178.83
172.70.178.83
参数设置
贡献
退出
操作
编辑
移动
保护
信息
历史
删除
查看“Sets sunion”的源代码
本页内容
上一节:
Sets_srem
下一节:
Sets_sunionstore
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
{{DISPLAYTITLE:SUNION key1 [key2]}}[[Category:redis sets|13]] = Redis Sunion 命令 = [[redis sets|Redis 集合(Set)]] Redis Sunion 命令返回给定集合的并集。不存在的集合 key 被视为空集。 === 语法 === redis Sunion 命令基本语法如下: <sample title="" desc="" lang="redis" hererun="1"> redis 127.0.0.1:6379> SUNION KEY KEY1..KEYN </sample> === 可用版本 === >= 1.0.0 === 返回值 === 并集成员的列表。 == <sample title="" desc="" lang="redis" hererun="1"> redis> SADD key1 "a" (integer) 1 redis> SADD key1 "b" (integer) 1 redis> SADD key1 "c" (integer) 1 redis> SADD key2 "c" (integer) 1 redis> SADD key2 "d" (integer) 1 redis> SADD key2 "e" (integer) 1 redis> SUNION key1 key2 1) "a" 2) "c" 3) "b" 4) "e" 5) "d" redis> </sample> [[redis sets|Redis 集合(Set)]]
返回至“
Sets sunion
”。
上一节:
Sets_srem
下一节:
Sets_sunionstore