V
- valuepublic interface RSet<V> extends Set<V>, RExpirable, RSetAsync<V>
Set
Modifier and Type | Method and Description |
---|---|
int |
diff(String... names)
Diff sets specified by name and write to current set.
|
int |
intersection(String... names)
Intersection sets specified by name and write to current set.
|
boolean |
move(String destination,
V member)
Move a member from this set to the given destination set in.
|
V |
random()
Returns random element from set
|
Set<V> |
readAll()
Read all elements at once
|
Set<V> |
readDiff(String... names)
Diff sets specified by name with current set.
|
Set<V> |
readIntersection(String... names)
Intersection sets specified by name with current set
without current set state change.
|
Set<V> |
readUnion(String... names)
Union sets specified by name with current set
without current set state change.
|
V |
removeRandom()
Removes and returns random element from set
|
int |
union(String... names)
Union sets specified by name and write to current set.
|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getCodec, getName, isExists, migrate, move, rename, renamenx
diffAsync, intersectionAsync, moveAsync, randomAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readUnionAsync, removeRandomAsync, unionAsync
addAllAsync, addAsync, containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync
V removeRandom()
V random()
boolean move(String destination, V member)
destination
- the destination setmember
- the member to moveint union(String... names)
names
- - name of setsSet<V> readUnion(String... names)
names
- - name of setsint diff(String... names)
names
- - name of setsSet<V> readDiff(String... names)
names
- - name of setsint intersection(String... names)
names
- - name of setsCopyright © 2014–2016 The Redisson Project. All rights reserved.