redis_sunion()

Read(321) Label: member, given sets, union,

Description:

Get the members of the union of all the given sets.

Syntax:

redis_sunion(con,key[,key1,key2,...])

Note:

External library function. A nonexistent key is treated as an empty set.

Parameters:

con

Database connection string

key

Set name

Return value:

A list of all members of the union set.

Example:

 

A

 

1

=redis("192.168.18.131:6379","runqian")

 

2

=redis_srandmember(A1,"fruit",5)

3

=redis_srandmember(A1,"tool",5)

4

=redis_sunion(A1,"tool","fruit")