redis SINTER command
Translation results:
UK ['sɪntə] US ['sɪntə]
n. Quanhua, sinter, slag
vt. To make sintering
redis SINTER commandsyntax
Function: Returns all members of a set, which is the intersection of all given sets. Keys that do not exist are treated as empty sets.
Syntax: SINTER key [key ...]
Explanation: When there is an empty set in the given set, the result is also Empty set (according to the laws of set operations).
Available versions: >= 1.0.0
Time complexity: O(N * M), N is the given set The set with the smallest cardinality, M is the number of the given set.
Returns: The list of intersection members.
redis SINTER commandexample
redis> SMEMBERS group_1 1) "LI LEI" 2) "TOM" 3) "JACK" redis> SMEMBERS group_2 1) "HAN MEIMEI" 2) "JACK" redis> SINTER group_1 group_2 1) "JACK"