sinter
英['s?nt?]? ?美['s?nt?]??
n.泉華,燒結(jié)物,熔渣
vt.使燒結(jié)
store
英[st?:(r)]? ?美[st?r, stor]??
#n.商店;儲存物;倉庫;大量
v.儲存;(在電腦裡)儲存
第三人稱單數(shù): stores 複數(shù): stores 現(xiàn)在分詞: storing 過去式: stored 過去分詞: stored
redis SINTERSTORE 指令 語法
作用:這個指令類似?SINTER?指令,但它將結(jié)果儲存到?destination?集合,而不是單純地回傳結(jié)果集。
語法:SINTERSTORE destination key [key ...]
#說明:如果?destination?集合已經(jīng)存在,則將其覆寫。 destination?可以是?key?本身。
可用版本:>= 1.0.0
時間複雜度:O(N * M),?N?為給定集合當中基數(shù)最小的集合,?M?為給定集合的個數(shù)。
傳回:結(jié)果集中的成員數(shù)。
redis SINTERSTORE 指令 範例
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"