インターフェース RedisSet<E>
- 型パラメーター:
E- このコレクション内の要素の型。
- すべてのスーパーインターフェース:
BoundKeyOperations<StringSE>, CollectionSE<E>, IterableSE<E>, RedisCollection<E>, RedisStore, SetSE<E>
- すべての既知の実装クラス:
DefaultRedisSet
- 作成者:
- Costin Leau, Christoph Strobl, Mark Paluch, Mingi Lee
方法の概要
修飾子と型メソッド説明static <E> RedisSet<E> create(StringSE key, RedisOperations<StringSE, E> operations) 新しいRedisSetインスタンスを構築します。diff(CollectionSE<? extends RedisSet<?>> sets) このセットと他のRedisSetを比較してください。このセットと別のRedisSetを比較してください。diffAndStore(CollectionSE<? extends RedisSet<?>> sets, StringSE destKey) diffAndStore(RedisSet<?> set, StringSE destKey) intersect(CollectionSE<? extends RedisSet<?>> sets) このセットと他のRedisSetを交差させます。このセットと別のRedisSetを交差させます。intersectAndStore(CollectionSE<? extends RedisSet<?>> sets, StringSE destKey) intersectAndStore(RedisSet<?> set, StringSE destKey) intersectSize(CollectionSE<? extends RedisSet<?>> sets) このセットと他のRedisSetの交差から得られるセットの基数を返します。intersectSize(RedisSet<?> set) このセットと別のRedisSetの交差から得られるセットの基数を返します。セットからランダムな要素を取得します。scan()union(CollectionSE<? extends RedisSet<?>> sets) このセットと他のRedisSetを結合します。このセットと別のRedisSetを結合します。unionAndStore(CollectionSE<? extends RedisSet<?>> sets, StringSE destKey) unionAndStore(RedisSet<?> set, StringSE destKey) インターフェース BoundKeyOperations から継承されたメソッド
expiration, expire, expire, expireAt, expireAt, getExpire, getKey, getType, persist, renameインターフェース CollectionSE から継承されたメソッド
parallelStream, removeIfSE, stream, toArraySEインターフェース IterableSE から継承されたメソッド
forEachSEインターフェース RedisStore から継承されたメソッド
getOperationsインターフェース SetSE から継承されたメソッド
addSE, addAllSE, clear, containsSE, containsAllSE, equalsSE, hashCode, isEmpty, iterator, removeSE, removeAllSE, retainAllSE, size, spliterator, toArray, toArraySE
メソッドの詳細
create
新しいRedisSetインスタンスを構築します。- パラメーター:
key- このセットの Redis キー。operations- このセットの値型のRedisOperations。- 導入:
- 2.6
diff
diff
diffAndStore
diffAndStore
intersect
intersect
intersectAndStore
intersectAndStore
intersectSize
intersectSize
このセットと他のRedisSetの交差から得られるセットの基数を返します。- パラメーター:
sets- null であってはなりません。- 戻り値:
- 交差の基数。
- 導入:
- 4.0
- 関連事項:
randomValue
scan
IteratorSE<E> scan()- 戻り値:
- 導入:
- 1.4
union
union
unionAndStore
unionAndStore