Syntax
SINTERSTORE destination key1
key2 ... keyN
Saves the result of
intersection all sets to the destination.
127.0.0.1:6379> sadd set1 2 4 6 8 (integer) 4 127.0.0.1:6379> sadd set2 1 3 5 7 4 6 (integer) 6 127.0.0.1:6379> sadd set3 1 3 5 7 4 (integer) 5 127.0.0.1:6379> sinterstore dest set1 set2 set3 (integer) 1 127.0.0.1:6379> smembers dest 1) "4"
No comments:
Post a Comment