亚洲区国产区激情区无码区,国产成人mv视频在线观看,国产A毛片AAAAAA,亚洲精品国产首次亮相在线

Redis Sunionstore 命令

Redis 集合(Set)

Redis Sunionstore 命令將給定集合的并集存儲(chǔ)在指定的集合 destination 中。如果 destination 已經(jīng)存在,則將其覆蓋。

語(yǔ)法

redis Sunionstore 命令基本語(yǔ)法如下:

SUNIONSTORE destination key [key ...]

可用版本

>= 1.0.0

返回值

結(jié)果集中的元素?cái)?shù)量。

在線示例

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> SUNIONSTORE key key1 key2
(integer) 5
redis> SMEMBERS key
1) "c"
2) "b"
3) "e"
4) "d"
5) "a"
redis>

Redis 集合(Set)