public interface RedisSet<E> extends RedisCollection<E>, Set<E>
| Modifier and Type | Method and Description |
|---|---|
static <E> RedisSet<E> |
create(String key,
RedisOperations<String,E> operations)
Constructs a new
RedisSet instance. |
Set<E> |
diff(Collection<? extends RedisSet<?>> sets)
Diff this set and other
RedisSets. |
Set<E> |
diff(RedisSet<?> set)
Diff this set and another
RedisSet. |
RedisSet<E> |
diffAndStore(Collection<? extends RedisSet<?>> sets,
String destKey)
|
RedisSet<E> |
diffAndStore(RedisSet<?> set,
String destKey)
|
Set<E> |
intersect(Collection<? extends RedisSet<?>> sets)
Intersect this set and other
RedisSets. |
Set<E> |
intersect(RedisSet<?> set)
Intersect this set and another
RedisSet. |
RedisSet<E> |
intersectAndStore(Collection<? extends RedisSet<?>> sets,
String destKey)
|
RedisSet<E> |
intersectAndStore(RedisSet<?> set,
String destKey)
|
E |
randomValue()
Get random element from the set.
|
Iterator<E> |
scan() |
Set<E> |
union(Collection<? extends RedisSet<?>> sets)
Union this set and other
RedisSets. |
Set<E> |
union(RedisSet<?> set)
Union this set and another
RedisSet. |
RedisSet<E> |
unionAndStore(Collection<? extends RedisSet<?>> sets,
String destKey)
|
RedisSet<E> |
unionAndStore(RedisSet<?> set,
String destKey)
|
getOperationsexpire, expire, expireAt, expireAt, getExpire, getKey, getType, persist, renameadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArrayparallelStream, removeIf, streamstatic <E> RedisSet<E> create(String key, RedisOperations<String,E> operations)
RedisSet instance.key - Redis key of this set.operations - RedisOperations for the value type of this set.Set<E> diff(RedisSet<?> set)
RedisSet.set - must not be null.Set containing the values that differ.Set<E> diff(Collection<? extends RedisSet<?>> sets)
RedisSets.sets - must not be null.Set containing the values that differ.RedisSet<E> diffAndStore(RedisSet<?> set, String destKey)
RedisSet by diffing this sorted set and RedisSet and store result in destination
destKey.set - must not be null.destKey - must not be null.RedisSet pointing at destKey.RedisSet<E> diffAndStore(Collection<? extends RedisSet<?>> sets, String destKey)
RedisSet by diffing this sorted set and the collection RedisSet and store result in
destination destKey.sets - must not be null.destKey - must not be null.RedisSet pointing at destKey.Set<E> intersect(RedisSet<?> set)
RedisSet.set - must not be null.Set containing the intersecting values.Set<E> intersect(Collection<? extends RedisSet<?>> sets)
RedisSets.sets - must not be null.Set containing the intersecting values.RedisSet<E> intersectAndStore(RedisSet<?> set, String destKey)
RedisSet by intersecting this sorted set and RedisSet and store result in destination
destKey.set - must not be null.destKey - must not be null.RedisSet pointing at destKeyRedisSet<E> intersectAndStore(Collection<? extends RedisSet<?>> sets, String destKey)
RedisSet by intersecting this sorted set and the collection RedisSet and store result
in destination destKey.sets - must not be null.destKey - must not be null.RedisSet pointing at destKey.E randomValue()
Set<E> union(RedisSet<?> set)
RedisSet.set - must not be null.Set containing the combined values.Set<E> union(Collection<? extends RedisSet<?>> sets)
RedisSets.sets - must not be null.Set containing the combined values.RedisSet<E> unionAndStore(RedisSet<?> set, String destKey)
RedisSet by union this sorted set and RedisSet and store result in destination
destKey.set - must not be null.destKey - must not be null.RedisSet pointing at destKey.RedisSet<E> unionAndStore(Collection<? extends RedisSet<?>> sets, String destKey)
RedisSet by union this sorted set and the collection RedisSet and store result in
destination destKey.sets - must not be null.destKey - must not be null.RedisSet pointing at destKey.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.