Class RedissonSetMultimapValues<V>
- Type Parameters:
V- value
- All Implemented Interfaces:
Iterable<V>,Collection<V>,Set<V>,RCollectionAsync<V>,RExpirable,RExpirableAsync,RObject,RObjectAsync,RSet<V>,RSetAsync<V>,RSortable<Set<V>>,RSortableAsync<Set<V>>
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonSetMultimapValues(Codec codec, CommandAsyncExecutor commandExecutor, String name, String timeoutSetName, Object key) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends V> c) addAllAsync(Collection<? extends V> c) Adds all elements contained in the specified collectionintaddAllCounted(Collection<? extends V> c) Adds all elements contained in the specified collection.addAllCountedAsync(Collection<? extends V> c) Adds all elements contained in the specified collection.Adds element into this collection.voidclear()booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) booleanbooleancontainsAll(Collection<?> c) containsAllAsync(Collection<?> c) Returnstrueif this collection contains all of the elements in the specified collection.Returnstrueif this collection contains encoded state of the specified element.containsEach(Collection<V> c) Check if each element is contained in the specified collection.Check if each element is contained in the specified collection.countIntersection(int limit, String... names) Counts elements of set as a result of sets intersection with current set.countIntersection(String... names) Counts elements of set as a result of sets intersection with current set.countIntersectionAsync(int limit, String... names) Counts elements of set as a result of sets intersection with current set.countIntersectionAsync(String... names) Counts elements of set as a result of sets intersection with current set.Delete object in async modeintDiff sets specified by name and write to current set.Diff sets specified by name and write to current set.distributedIterator(int count) Returns element iterator that can be shared across multiple applications.distributedIterator(String pattern) Returns iterator over elements that match specified pattern.distributedIterator(String iteratorName, String pattern, int count) Returns iterator over elements that match specified pattern.booleanUseRExpirable.expire(Duration)insteadbooleanSets a timeout for this object.booleanSets an expiration date for this object.expireAsync(long timeToLive, TimeUnit timeUnit) UseRExpirableAsync.expireAsync(Duration)insteadexpireAsync(long timeToLive, TimeUnit timeUnit, String param, String... keys) expireAsync(Duration duration) Set a timeout for object.expireAsync(Instant instant) Set an expire date for object.booleanexpireAt(long timestamp) UseRExpirable.expire(Instant)insteadbooleanUseRExpirable.expire(Instant)insteadexpireAtAsync(long timestamp) UseRExpirableAsync.expireAsync(Instant)insteadexpireAtAsync(long timestamp, String param, String... keys) expireAtAsync(Date timestamp) UseRExpirableAsync.expireAsync(Instant)insteadbooleanexpireIfGreater(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.booleanexpireIfGreater(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.expireIfGreaterAsync(Duration duration) Sets a timeout for this object only if it's greater than timeout set before.expireIfGreaterAsync(Instant time) Sets an expiration date for this object only if it's greater than expiration date set before.booleanexpireIfLess(Duration duration) Sets a timeout for this object only if it's less than timeout set before.booleanexpireIfLess(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.expireIfLessAsync(Duration duration) Sets a timeout for this object only if it's less than timeout set before.expireIfLessAsync(Instant time) Sets an expiration date for this object only if it's less than expiration date set before.booleanexpireIfNotSet(Duration duration) Sets a timeout for this object only if it hasn't been set before.booleanexpireIfNotSet(Instant time) Sets an expiration date for this object only if it hasn't been set before.expireIfNotSetAsync(Duration duration) Sets a timeout for this object only if it hasn't been set before.expireIfNotSetAsync(Instant time) Sets an expiration date for this object only if it hasn't been set before.booleanexpireIfSet(Duration duration) Sets a timeout for this object only if it has been already set.booleanexpireIfSet(Instant time) Sets an expiration date for this object only if it has been already set.expireIfSetAsync(Duration duration) Sets a timeout for this object only if it has been already set.expireIfSetAsync(Instant time) Sets an expiration date for this object only if it has been already set.getCountDownLatch(V value) ReturnsRCountDownLatchinstance associated withvaluelongReturns expiration time of the object as the absolute Unix expiration timestamp in milliseconds.Returns expiration time of the object as the absolute Unix expiration timestamp in milliseconds.getFairLock(V value) ReturnsRLockinstance associated withvalueReturns lock instance associated withvaluegetPermitExpirableSemaphore(V value) ReturnsRPermitExpirableSemaphoreinstance associated withvaluegetReadWriteLock(V value) ReturnsRReadWriteLockinstance associated withvaluegetSemaphore(V value) ReturnsRSemaphoreinstance associated withvalueintintersection(String... names) Intersection sets specified by name and write to current set.intersectionAsync(String... names) Intersection sets specified by name and write to current set.booleanisEmpty()iterator()iterator(int count) Returns elements iterator fetches elements in a batch.Returns elements iterator.Returns elements iterator fetches elements in a batch.<KOut,VOut>
RCollectionMapReduce<V, KOut, VOut> ReturnsRMapReduceobject associated with this objectbooleanMove a member from this set to the given destination set in.Move a member from this set to the given destination set in async mode.random()Returns random elementrandom(int count) Returns random elements from set limited bycountReturns random element from set in async moderandomAsync(int count) Returns random elements from set limited bycountreadAll()Read all elements at onceRead all elements at onceDiff sets specified by name with current set.readDiffAsync(String... names) Diff sets specified by name with current set.readIntersection(String... names) Intersection sets specified by name with current set without current set state change.readIntersectionAsync(String... names) Intersection sets specified by name with current set.<T> Collection<T> Read data in sorted view<T> Collection<T> Read data in sorted viewRead data in sorted viewRead data in sorted viewRead data in sorted viewRead data in sorted view<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view lexicographically<T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlpha(String byPattern, SortOrder order) Read data in sorted view lexicographicallyreadSortAlpha(String byPattern, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlpha(SortOrder order) Read data in sorted view lexicographicallyreadSortAlpha(SortOrder order, int offset, int count) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlphaAsync(String byPattern, SortOrder order) Read data in sorted view lexicographicallyreadSortAlphaAsync(String byPattern, SortOrder order, int offset, int count) Read data in sorted view lexicographicallyreadSortAlphaAsync(SortOrder order) Read data in sorted view lexicographicallyreadSortAlphaAsync(SortOrder order, int offset, int count) Read data in sorted view lexicographically<T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order) Read data in sorted view<T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Read data in sorted viewreadSortAsync(String byPattern, SortOrder order) Read data in sorted viewreadSortAsync(String byPattern, SortOrder order, int offset, int count) Read data in sorted viewreadSortAsync(SortOrder order) Read data in sorted viewreadSortAsync(SortOrder order, int offset, int count) Read data in sorted viewUnion sets specified by name with current set without current set state change.readUnionAsync(String... names) Union sets specified by name with current set.longReturns remaining time of the object in milliseconds.Returns remaining time of the object in milliseconds.booleanbooleanremoveAll(Collection<?> c) removeAllAsync(Collection<?> c) Removes all of this collection's elements that are also contained in the specified collection.intremoveAllCounted(Collection<? extends V> c) Removes all elements contained in the specified collection.removeAllCountedAsync(Collection<? extends V> c) Removes all elements contained in the specified collection.Removes a single instance of the specified element from this collection, if it is present.Removes and returns random elementremoveRandom(int amount) Removes and returns random elements limited byamountRemoves and returns random element from set in async moderemoveRandomAsync(int amount) Removes and returns random elements from set in async moderenameAsync(String newName) Rename current object key tonewNamein async moderenamenxAsync(String newName) Rename current object key tonewNamein async mode only if new key is not existsbooleanretainAll(Collection<?> c) retainAllAsync(Collection<?> c) Retains only the elements in this collection that are contained in the specified collection.intsize()Returns number of elements in this collection.Returns bytes amount used by object in Redis memory.intSort data and store todestNamelistintsortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Sort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistintSort data and store todestNamelistSort data and store todestNamelistsortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Sort data and store todestNamelistsortToAsync(String destName, String byPattern, SortOrder order) Sort data and store todestNamelistsortToAsync(String destName, String byPattern, SortOrder order, int offset, int count) Sort data and store todestNamelistsortToAsync(String destName, SortOrder order) Sort data and store todestNamelistsortToAsync(String destName, SortOrder order, int offset, int count) Sort data and store todestNameliststream(int count) Returns stream of elements fetches elements in a batch.Returns stream of elements.Returns stream of elements fetches elements in a batch.Object[]toArray()<T> T[]toArray(T[] a) booleanTries to add elements only if none of them in set.tryAddAsync(V... values) Tries to add elements only if none of them in set.intUnion sets specified by name and write to current set.unionAsync(String... names) Union sets specified by name and write to current set.Methods inherited from class org.redisson.RedissonObject
addListener, addListener, addListenerAsync, addListenerAsync, addListenerId, addTrackingListener, addTrackingListenerAsync, checkNotBatch, copy, copy, copy, copyAndReplace, copyAndReplace, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getIdleTime, getIdleTimeAsync, getListenerIdsByName, getLockByMapKey, getLockByValue, getName, getNameByListenerId, getRawName, getRawName, getServiceManager, getSubscribeService, isExists, isExistsAsync, map, mapName, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListener, removeListenerAsync, removeListenerAsync, removeListenerAsync, removeListenerId, removeListeners, removeTrackingListener, removeTrackingListenerAsync, rename, renameAsync, renameAsync, renamenx, renamenxAsync, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, sizeInMemoryAsync, suffixName, toSeconds, toStream, touch, touchAsync, unlink, unlinkAsyncMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLiveMethods inherited from interface org.redisson.api.RExpirableAsync
expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsyncMethods inherited from interface org.redisson.api.RObject
copy, copy, copy, copyAndReplace, copyAndReplace, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsyncMethods inherited from interface org.redisson.api.RSet
addListenerMethods inherited from interface org.redisson.api.RSetAsync
addListenerAsyncMethods inherited from interface java.util.Set
equals, hashCode, spliterator
-
Constructor Details
-
RedissonSetMultimapValues
public RedissonSetMultimapValues(Codec codec, CommandAsyncExecutor commandExecutor, String name, String timeoutSetName, Object key)
-
-
Method Details
-
size
public int size() -
mapReduce
Description copied from interface:RSetReturnsRMapReduceobject associated with this object -
tryAdd
Description copied from interface:RSetTries to add elements only if none of them in set. -
containsEach
Description copied from interface:RSetCheck if each element is contained in the specified collection. Returns contained elements.Requires Redis 6.2.0 and higher.
- Specified by:
containsEachin interfaceRSet<V>- Parameters:
c- - collection to check- Returns:
- contained elements
-
tryAddAsync
Description copied from interface:RSetAsyncTries to add elements only if none of them in set.- Specified by:
tryAddAsyncin interfaceRSetAsync<V>- Parameters:
values- - values to add- Returns:
trueif elements successfully added, otherwisefalse.
-
clearExpireAsync
Description copied from interface:RExpirableAsyncClear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsyncin interfaceRExpirableAsync- Returns:
trueif the timeout was cleared andfalseif not
-
expireAsync
-
expireAtAsync
-
remainTimeToLiveAsync
Description copied from interface:RExpirableAsyncReturns remaining time of the object in milliseconds.- Specified by:
remainTimeToLiveAsyncin interfaceRExpirableAsync- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
renameAsync
Description copied from interface:RObjectAsyncRename current object key tonewNamein async mode- Specified by:
renameAsyncin interfaceRObjectAsync- Overrides:
renameAsyncin classRedissonObject- Parameters:
newName- - new name of object- Returns:
- void
-
renamenxAsync
Description copied from interface:RObjectAsyncRename current object key tonewNamein async mode only if new key is not exists- Specified by:
renamenxAsyncin interfaceRObjectAsync- Overrides:
renamenxAsyncin classRedissonObject- Parameters:
newName- - new name of object- Returns:
trueif object has been renamed successfully andfalseotherwise
-
deleteAsync
Description copied from interface:RObjectAsyncDelete object in async mode- Specified by:
deleteAsyncin interfaceRObjectAsync- Overrides:
deleteAsyncin classRedissonObject- Returns:
trueif object was deletedfalseif not
-
sizeInMemoryAsync
Description copied from interface:RObjectAsyncReturns bytes amount used by object in Redis memory.- Specified by:
sizeInMemoryAsyncin interfaceRObjectAsync- Overrides:
sizeInMemoryAsyncin classRedissonObject- Returns:
- size in bytes
-
copyAsync
- Overrides:
copyAsyncin classRedissonObject
-
sizeAsync
Description copied from interface:RCollectionAsyncReturns number of elements in this collection.- Specified by:
sizeAsyncin interfaceRCollectionAsync<V>- Returns:
- size of collection
-
isEmpty
public boolean isEmpty() -
contains
-
containsAsync
Description copied from interface:RCollectionAsyncReturnstrueif this collection contains encoded state of the specified element.- Specified by:
containsAsyncin interfaceRCollectionAsync<V>- Parameters:
o- element whose presence in this collection is to be tested- Returns:
trueif this collection contains the specified element andfalseotherwise
-
iterator
Description copied from interface:RSetReturns elements iterator fetches elements in a batch. Batch size is defined bycountparam. -
iterator
Description copied from interface:RSetReturns elements iterator. Ifpatternis not null then only elements match this pattern are loaded. -
distributedIterator
Description copied from interface:RSetReturns iterator over elements that match specified pattern. Iterator can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. See RSet.distributedIterator(String, String, int) for creating different iterators.- Specified by:
distributedIteratorin interfaceRSet<V>- Parameters:
pattern- element pattern- Returns:
- shared elements iterator
-
distributedIterator
Description copied from interface:RSetReturns element iterator that can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. See RSet.distributedIterator(String, String, int) for creating different iterators.- Specified by:
distributedIteratorin interfaceRSet<V>- Parameters:
count- batch size- Returns:
- shared elements iterator
-
distributedIterator
Description copied from interface:RSetReturns iterator over elements that match specified pattern. Iterator can be shared across multiple applications. Creating multiple iterators on the same object with this method will result in a single shared iterator. Iterator name must be resolved to the same hash slot as set name.- Specified by:
distributedIteratorin interfaceRSet<V>- Parameters:
iteratorName- redis object name to which cursor will be savedpattern- element patterncount- batch size- Returns:
- shared elements iterator
-
iterator
Description copied from interface:RSetReturns elements iterator fetches elements in a batch. Batch size is defined bycountparam. If pattern is not null then only elements match this pattern are loaded. -
iterator
-
readAllAsync
Description copied from interface:RSetAsyncRead all elements at once- Specified by:
readAllAsyncin interfaceRSetAsync<V>- Returns:
- values
-
readAll
Description copied from interface:RSetRead all elements at once -
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
addAsync
Description copied from interface:RCollectionAsyncAdds element into this collection.- Specified by:
addAsyncin interfaceRCollectionAsync<V>- Parameters:
e- - element to add- Returns:
trueif an element was added andfalseif it is already present
-
removeRandom
Description copied from interface:RSetRemoves and returns random element- Specified by:
removeRandomin interfaceRSet<V>- Returns:
- random element
-
removeRandomAsync
Description copied from interface:RSetAsyncRemoves and returns random element from set in async mode- Specified by:
removeRandomAsyncin interfaceRSetAsync<V>- Returns:
- value
-
removeRandom
Description copied from interface:RSetRemoves and returns random elements limited byamount- Specified by:
removeRandomin interfaceRSet<V>- Parameters:
amount- of random elements- Returns:
- random elements
-
removeRandomAsync
Description copied from interface:RSetAsyncRemoves and returns random elements from set in async mode- Specified by:
removeRandomAsyncin interfaceRSetAsync<V>- Parameters:
amount- of random values- Returns:
- random values
-
random
Description copied from interface:RSetReturns random element -
randomAsync
Description copied from interface:RSetAsyncReturns random element from set in async mode- Specified by:
randomAsyncin interfaceRSetAsync<V>- Returns:
- value
-
random
Description copied from interface:RSetReturns random elements from set limited bycount -
randomAsync
Description copied from interface:RSetAsyncReturns random elements from set limited bycount- Specified by:
randomAsyncin interfaceRSetAsync<V>- Parameters:
count- - values amount to return- Returns:
- value
-
removeAsync
Description copied from interface:RCollectionAsyncRemoves a single instance of the specified element from this collection, if it is present.- Specified by:
removeAsyncin interfaceRCollectionAsync<V>- Parameters:
o- element to be removed from this collection, if present- Returns:
trueif an element was removed as a result of this call
-
remove
-
moveAsync
Description copied from interface:RSetAsyncMove a member from this set to the given destination set in async mode. -
move
Description copied from interface:RSetMove a member from this set to the given destination set in. -
containsAll
- Specified by:
containsAllin interfaceCollection<V>- Specified by:
containsAllin interfaceSet<V>
-
containsAllAsync
Description copied from interface:RCollectionAsyncReturnstrueif this collection contains all of the elements in the specified collection.- Specified by:
containsAllAsyncin interfaceRCollectionAsync<V>- Parameters:
c- collection to be checked for containment in this collection- Returns:
trueif this collection contains all of the elements in the specified collection
-
addAll
-
addAllAsync
Description copied from interface:RCollectionAsyncAdds all elements contained in the specified collection- Specified by:
addAllAsyncin interfaceRCollectionAsync<V>- Parameters:
c- - collection of elements to add- Returns:
trueif at least one element was added andfalseif all elements are already present
-
addAllCountedAsync
Description copied from interface:RSetAsyncAdds all elements contained in the specified collection. Returns number of added elements.- Specified by:
addAllCountedAsyncin interfaceRSetAsync<V>- Parameters:
c- - collection of elements to add- Returns:
- number of added elements
-
addAllCounted
Description copied from interface:RSetAdds all elements contained in the specified collection. Returns number of added elements.- Specified by:
addAllCountedin interfaceRSet<V>- Parameters:
c- - collection of elements to add- Returns:
- number of added elements
-
removeAllCounted
Description copied from interface:RSetRemoves all elements contained in the specified collection. Returns number of removed elements.- Specified by:
removeAllCountedin interfaceRSet<V>- Parameters:
c- - collection of elements to add- Returns:
- number of removed elements
-
removeAllCountedAsync
Description copied from interface:RSetAsyncRemoves all elements contained in the specified collection. Returns number of removed elements.- Specified by:
removeAllCountedAsyncin interfaceRSetAsync<V>- Parameters:
c- - collection of elements to add- Returns:
- number of removed elements
-
containsEachAsync
Description copied from interface:RSetAsyncCheck if each element is contained in the specified collection. Returns contained elements.Requires Redis 6.2.0 and higher.
- Specified by:
containsEachAsyncin interfaceRSetAsync<V>- Parameters:
c- - collection to check- Returns:
- contained elements
-
retainAll
-
retainAllAsync
Description copied from interface:RCollectionAsyncRetains only the elements in this collection that are contained in the specified collection.- Specified by:
retainAllAsyncin interfaceRCollectionAsync<V>- Parameters:
c- collection containing elements to be retained in this collection- Returns:
trueif this collection changed as a result of the call
-
removeAllAsync
Description copied from interface:RCollectionAsyncRemoves all of this collection's elements that are also contained in the specified collection.- Specified by:
removeAllAsyncin interfaceRCollectionAsync<V>- Parameters:
c- collection containing elements to be removed from this collection- Returns:
trueif this collection changed as a result of the call
-
getCountDownLatch
Description copied from interface:RSetReturnsRCountDownLatchinstance associated withvalue- Specified by:
getCountDownLatchin interfaceRSet<V>- Parameters:
value- - set value- Returns:
- RCountDownLatch object
-
getPermitExpirableSemaphore
Description copied from interface:RSetReturnsRPermitExpirableSemaphoreinstance associated withvalue- Specified by:
getPermitExpirableSemaphorein interfaceRSet<V>- Parameters:
value- - set value- Returns:
- RPermitExpirableSemaphore object
-
getSemaphore
Description copied from interface:RSetReturnsRSemaphoreinstance associated withvalue- Specified by:
getSemaphorein interfaceRSet<V>- Parameters:
value- - set value- Returns:
- RSemaphore object
-
getFairLock
Description copied from interface:RSetReturnsRLockinstance associated withvalue- Specified by:
getFairLockin interfaceRSet<V>- Parameters:
value- - set value- Returns:
- RLock object
-
getReadWriteLock
Description copied from interface:RSetReturnsRReadWriteLockinstance associated withvalue- Specified by:
getReadWriteLockin interfaceRSet<V>- Parameters:
value- - set value- Returns:
- RReadWriteLock object
-
getLock
Description copied from interface:RSetReturns lock instance associated withvalue -
removeAll
-
union
Description copied from interface:RSetUnion sets specified by name and write to current set. If current set already exists, it is overwritten. -
unionAsync
Description copied from interface:RSetAsyncUnion sets specified by name and write to current set. If current set already exists, it is overwritten.- Specified by:
unionAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- size of union
-
readUnion
Description copied from interface:RSetUnion sets specified by name with current set without current set state change. -
readUnionAsync
Description copied from interface:RSetAsyncUnion sets specified by name with current set. Without current set state change.- Specified by:
readUnionAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- values
-
clear
public void clear() -
diff
Description copied from interface:RSetDiff sets specified by name and write to current set. If current set already exists, it is overwritten. -
diffAsync
Description copied from interface:RSetAsyncDiff sets specified by name and write to current set. If current set already exists, it is overwritten. -
readDiff
Description copied from interface:RSetDiff sets specified by name with current set. Without current set state change. -
readDiffAsync
Description copied from interface:RSetAsyncDiff sets specified by name with current set. Without current set state change.- Specified by:
readDiffAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- values
-
intersection
Description copied from interface:RSetIntersection sets specified by name and write to current set. If current set already exists, it is overwritten.- Specified by:
intersectionin interfaceRSet<V>- Parameters:
names- - name of sets- Returns:
- size of intersection
-
intersectionAsync
Description copied from interface:RSetAsyncIntersection sets specified by name and write to current set. If current set already exists, it is overwritten.- Specified by:
intersectionAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- size of intersection
-
readIntersection
Description copied from interface:RSetIntersection sets specified by name with current set without current set state change.- Specified by:
readIntersectionin interfaceRSet<V>- Parameters:
names- - name of sets- Returns:
- values
-
readIntersectionAsync
Description copied from interface:RSetAsyncIntersection sets specified by name with current set. Without current set state change.- Specified by:
readIntersectionAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- values
-
countIntersection
Description copied from interface:RSetCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionin interfaceRSet<V>- Parameters:
names- - name of sets- Returns:
- amount of elements
-
countIntersectionAsync
Description copied from interface:RSetAsyncCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionAsyncin interfaceRSetAsync<V>- Parameters:
names- - name of sets- Returns:
- amount of elements
-
countIntersection
Description copied from interface:RSetCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionin interfaceRSet<V>- Parameters:
limit- - sets intersection limitnames- - name of sets- Returns:
- amount of elements
-
countIntersectionAsync
Description copied from interface:RSetAsyncCounts elements of set as a result of sets intersection with current set.Requires Redis 7.0.0 and higher.
- Specified by:
countIntersectionAsyncin interfaceRSetAsync<V>- Parameters:
limit- - sets intersection limitnames- - name of sets- Returns:
- amount of elements
-
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSort
Description copied from interface:RSortableRead data in sorted view -
readSortAsync
public <T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection
-
readSort
public <T> Collection<T> readSort(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableRead data in sorted view- Specified by:
readSortin interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSortAsync
public <T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncRead data in sorted view- Specified by:
readSortAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
order- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
public <T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableRead data in sorted view lexicographically- Specified by:
readSortAlphain interfaceRSortable<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
order- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Parameters:
byPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public <T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public <T> RFuture<Collection<T>> readSortAlphaAsync(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncRead data in sorted view lexicographically- Specified by:
readSortAlphaAsyncin interfaceRSortableAsync<V>- Type Parameters:
T- object type- Parameters:
byPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- sorted collection lexicographically
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationorder- for sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortingorder- for sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortingorder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortTo
Description copied from interface:RSortableSort data and store todestNamelist -
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted data- Returns:
- length of sorted data
-
sortTo
public int sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableSort data and store todestNamelist- Specified by:
sortToin interfaceRSortable<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count) Description copied from interface:RSortableAsyncSort data and store todestNamelist- Specified by:
sortToAsyncin interfaceRSortableAsync<V>- Parameters:
destName- list object destinationbyPattern- that is used to generate the keys that are used for sortinggetPatterns- that is used to load values by keys in sorted vieworder- for sorted dataoffset- of sorted datacount- of sorted data- Returns:
- length of sorted data
-
stream
Description copied from interface:RSetReturns stream of elements fetches elements in a batch. Batch size is defined bycountparam. -
stream
Description copied from interface:RSetReturns stream of elements fetches elements in a batch. Batch size is defined bycountparam. If pattern is not null then only elements match this pattern are loaded. -
stream
Description copied from interface:RSetReturns stream of elements. If pattern is not null then only elements match this pattern are loaded. -
expire
Description copied from interface:RExpirableUseRExpirable.expire(Duration)instead- Specified by:
expirein interfaceRExpirable- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Duration)instead- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
timeToLive- - timeout before object will be deletedtimeUnit- - timeout time unit- Returns:
trueif the timeout was set andfalseif not
-
expireAt
public boolean expireAt(long timestamp) Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date in milliseconds (Unix timestamp)- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets an expiration date for this object. When expire date comes the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
instant- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it has been already set. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it hasn't been set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's greater than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets an expiration date for this object only if it's less than expiration date set before. When expire date comes the object will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
time- expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
instant- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expire
Description copied from interface:RExpirableSets a timeout for this object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expirein interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAsync
Description copied from interface:RExpirableAsyncSet a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireAt
Description copied from interface:RExpirableUseRExpirable.expire(Instant)instead- Specified by:
expireAtin interfaceRExpirable- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireAtAsync
Description copied from interface:RExpirableAsyncUseRExpirableAsync.expireAsync(Instant)instead- Specified by:
expireAtAsyncin interfaceRExpirableAsync- Parameters:
timestamp- - expire date- Returns:
trueif the timeout was set andfalseif not
-
expireIfSet
Description copied from interface:RExpirableSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it has been already set. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSet
Description copied from interface:RExpirableSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfNotSetAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it hasn't been set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfNotSetAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreater
Description copied from interface:RExpirableSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfGreaterAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's greater than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfGreaterAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLess
Description copied from interface:RExpirableSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessin interfaceRExpirable- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
expireIfLessAsync
Description copied from interface:RExpirableAsyncSets a timeout for this object only if it's less than timeout set before. After the timeout has expired, the key will automatically be deleted.Requires Redis 7.0.0 and higher.
- Specified by:
expireIfLessAsyncin interfaceRExpirableAsync- Parameters:
duration- timeout before object will be deleted- Returns:
trueif the timeout was set andfalseif not
-
clearExpire
public boolean clearExpire()Description copied from interface:RExpirableClear an expire timeout or expire date for object.- Specified by:
clearExpirein interfaceRExpirable- Returns:
trueif timeout was removedfalseif object does not exist or does not have an associated timeout
-
remainTimeToLive
public long remainTimeToLive()Description copied from interface:RExpirableReturns remaining time of the object in milliseconds.- Specified by:
remainTimeToLivein interfaceRExpirable- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
getExpireTime
public long getExpireTime()Description copied from interface:RExpirableReturns expiration time of the object as the absolute Unix expiration timestamp in milliseconds.Requires Redis 7.0.0 and higher.
- Specified by:
getExpireTimein interfaceRExpirable- Returns:
- Unix time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expiration time.
-
getExpireTimeAsync
Description copied from interface:RExpirableAsyncReturns expiration time of the object as the absolute Unix expiration timestamp in milliseconds.Requires Redis 7.0.0 and higher.
- Specified by:
getExpireTimeAsyncin interfaceRExpirableAsync- Returns:
- Unix time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expiration time.
-
clearExpireAsync
-