redis_sinter()

Read(227) Label: members, given sets,

Decription:

Get members of the intersection of all the given sets.

Syntax:

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

Note:

External library function. A nonexistent set represented by the parameter key is treated as an empty set. If there is an empty set among the given sets, the function returns an empty set.

Parameters

con

Database connection string

key

Set name

Return value

A list of all members in the intersection.

Example

 

A

 

1

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

 

2

= redis_srandmember(A1,"fruit",5)

3

=redis_srandmember(A1,"tool",5)

4

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