redis SINTERSTORE instruction
Translation results:
sinter
UK['sɪntə] US['sɪntə]
n. Quanhua, sinter, slag
vt. To sinter
store
UK[stɔ:(r)] US[stɔr, stor]
n. Store; storage; warehouse; A large amount of
v. to store; (in a computer) to store
Third person singular: stores Plural: stores Present participle: storing Past tense: stored Past participle: stored
redis SINTERSTORE instructionsyntax
Function: This command is similar to the SINTER command, but it saves the results to the destination collection instead of simply returning the result set.
Syntax: SINTERSTORE destination key [key ...]
Description: If the destination collection already exists, it will be overwritten. destination can be the key itself.
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 number of members in the result set.
redis SINTERSTORE instructionexample
redis> SMEMBERS songs 1) "good bye joe" 2) "hello,peter" redis> SMEMBERS my_songs 1) "good bye joe" 2) "falling" redis> SINTERSTORE song_interset songs my_songs (integer) 1 redis> SMEMBERS song_interset 1) "good bye joe"