Package org.redisson
Class RedissonLexSortedSet
- All Implemented Interfaces:
Iterable<String>,Collection<String>,Set<String>,SortedSet<String>,RCollectionAsync<String>,RExpirable,RExpirableAsync,RLexSortedSet,RLexSortedSetAsync,RObject,RObjectAsync,RScoredSortedSet<String>,RScoredSortedSetAsync<String>,RSortable<Set<String>>,RSortableAsync<Set<String>>,RSortedSet<String>
Sorted set contained values of String type
- Author:
- Nikita Koksharov
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.redisson.api.RScoredSortedSet
RScoredSortedSet.Aggregate -
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends String> c) addAllAsync(Collection<? extends String> c) Adds all elements contained in the specified collectionAdds element into this collection.booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) Comparator<? super String> intReturns the number of elements betweenfromElementandtoElement.countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns the number of elements betweenfromElementandtoElement.intReturns the number of head values ending withtoElement.countHeadAsync(String toElement, boolean toInclusive) Returns the number of head values ending withtoElement.intReturns the number of tail values starting withfromElement.countTailAsync(String fromElement, boolean fromInclusive) Returns the number of tail values starting withfromElement.distributedIterator(String iteratorName, 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.longReturns 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.range(int startIndex, int endIndex) Returns values by rank range.Returns values range starting withfromElementand ending withtoElement.range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range starting withfromElementand ending withtoElement.rangeAsync(int startIndex, int endIndex) Returns values by rank range.rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns values range starting withfromElementand ending withtoElement.rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range starting withfromElementand ending withtoElement.Returns head values range ending withtoElement.Returns head values range ending withtoElement.rangeHeadAsync(String toElement, boolean toInclusive) Returns head values range ending withtoElement.rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count) Returns head values range ending withtoElement.rangeHeadReversed(String toElement, boolean toInclusive) Returns head values range in reverse order ending withtoElement.rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count) Returns head values range in reverse order ending withtoElement.rangeHeadReversedAsync(String toElement, boolean toInclusive) Returns head values range in reverse order ending withtoElement.rangeHeadReversedAsync(String toElement, boolean toInclusive, int offset, int count) Returns head values range in reverse order ending withtoElement.rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns values range in reverse order starting withfromElementand ending withtoElement.rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range in reverse order starting withfromElementand ending withtoElement.rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Returns values range in reverse order starting withfromElementand ending withtoElement.rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Returns values range in reverse order starting withfromElementand ending withtoElement.Returns tail values range starting withfromElement.Returns tail values range starting withfromElement.rangeTailAsync(String fromElement, boolean fromInclusive) Returns tail values range starting withfromElement.rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count) Returns tail values range starting withfromElement.rangeTailReversed(String fromElement, boolean fromInclusive) Returns tail values range in reverse order starting withfromElement.rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count) Returns tail values range in reverse order starting withfromElement.rangeTailReversedAsync(String fromElement, boolean fromInclusive) Returns tail values range in reverse order starting withfromElement.rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count) Returns tail values range in reverse order starting withfromElement.longReturns remaining time of the object in milliseconds.Returns remaining time of the object in milliseconds.intremoveRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Removes values range starting withfromElementand ending withtoElement.removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Removes values range starting withfromElementand ending withtoElement.intremoveRangeHead(String toElement, boolean toInclusive) Removes head values range ending withtoElement.removeRangeHeadAsync(String toElement, boolean toInclusive) Removes head values range ending withtoElement.intremoveRangeTail(String fromElement, boolean fromInclusive) Removes tail values range starting withfromElement.removeRangeTailAsync(String fromElement, boolean fromInclusive) Removes tail values range starting withfromElement.booleantrySetComparator(Comparator<? super String> comparator) Sets new comparator only if current set is emptyMethods inherited from class org.redisson.RedissonScoredSortedSet
add, addAll, addAllAsync, addAllIfAbsent, addAllIfAbsentAsync, addAllIfExist, addAllIfExistAsync, addAllIfGreater, addAllIfGreaterAsync, addAllIfLess, addAllIfLessAsync, addAndGetRank, addAndGetRankAsync, addAndGetRevRank, addAndGetRevRank, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfAbsent, addIfAbsentAsync, addIfExists, addIfExistsAsync, addIfGreater, addIfGreaterAsync, addIfLess, addIfLessAsync, addListener, addListenerAsync, addScore, addScoreAndGetRank, addScoreAndGetRankAsync, addScoreAndGetRevRank, addScoreAndGetRevRankAsync, addScoreAsync, clear, contains, containsAll, containsAllAsync, containsAsync, count, countAsync, countIntersection, countIntersection, countIntersectionAsync, countIntersectionAsync, diff, diffAsync, distributedIterator, distributedIterator, distributedIterator, entryIterator, entryIterator, entryIterator, entryIterator, entryRange, entryRange, entryRange, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversed, entryRangeReversed, entryRangeReversed, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryScanIteratorAsync, first, firstAsync, firstEntry, firstEntryAsync, firstScore, firstScoreAsync, getScore, getScore, getScoreAsync, getScoreAsync, intersection, intersection, intersection, intersection, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, isEmpty, iterator, iterator, iterator, iterator, last, lastAsync, lastEntry, lastEntryAsync, lastScore, lastScoreAsync, mapReduce, pollFirst, pollFirst, pollFirst, pollFirst, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstEntries, pollFirstEntries, pollFirstEntriesAsync, pollFirstEntriesAsync, pollFirstEntriesFromAny, pollFirstEntriesFromAny, pollFirstEntriesFromAnyAsync, pollFirstEntriesFromAnyAsync, pollFirstEntry, pollFirstEntryAsync, pollFirstFromAny, pollFirstFromAny, pollFirstFromAny, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollLast, pollLast, pollLast, pollLast, pollLastAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastEntries, pollLastEntries, pollLastEntriesAsync, pollLastEntriesAsync, pollLastEntriesFromAny, pollLastEntriesFromAny, pollLastEntriesFromAnyAsync, pollLastEntriesFromAnyAsync, pollLastEntry, pollLastEntryAsync, pollLastFromAny, pollLastFromAny, pollLastFromAny, pollLastFromAnyAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, random, random, randomAsync, randomAsync, randomEntries, randomEntriesAsync, rangeTo, rangeTo, rangeTo, rangeToAsync, rangeToAsync, rangeToAsync, rank, rankAsync, rankEntry, rankEntryAsync, readAll, readAllAsync, readDiff, readDiffAsync, readIntersection, readIntersection, readIntersection, readIntersection, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readUnion, readUnion, readUnion, readUnion, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, remove, removeAll, removeAllAsync, removeAsync, removeListener, removeListenerAsync, removeRangeByRank, removeRangeByRankAsync, removeRangeByScore, removeRangeByScoreAsync, replace, replaceAsync, retainAll, retainAllAsync, revRangeTo, revRangeTo, revRangeTo, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRank, revRank, revRankAsync, revRankAsync, revRankEntry, revRankEntryAsync, scanIteratorAsync, size, sizeAsync, sortTo, sortTo, sortTo, sortTo, sortTo, sortTo, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnFirstElements, subscribeOnLastElements, subscribeOnLastElements, takeFirst, takeFirstAsync, takeLast, takeLastAsync, toArray, toArray, tryAdd, tryAddAsync, union, union, union, union, unionAsync, unionAsync, unionAsync, unionAsync, unsubscribe, value, valueRange, valueRange, valueRange, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversed, valueRangeReversed, valueRangeReversed, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsyncMethods inherited from class org.redisson.RedissonObject
addListener, addListenerAsync, addListenerId, addTrackingListener, addTrackingListenerAsync, checkNotBatch, copy, copy, copy, copyAndReplace, copyAndReplace, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, copyAsync, copyAsync, delete, deleteAsync, 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, removeListenerAsync, removeListenerAsync, removeListenerId, removeListeners, removeTrackingListener, removeTrackingListenerAsync, rename, renameAsync, renameAsync, renameAsync, renamenx, renamenxAsync, renamenxAsync, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, setName, sizeInMemory, sizeInMemoryAsync, 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.RCollectionAsync
containsAllAsync, containsAsync, removeAllAsync, removeAsync, retainAllAsync, sizeAsyncMethods 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
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RLexSortedSet
addListener, pollFirst, pollLast, random, random, rank, revRankMethods inherited from interface org.redisson.api.RLexSortedSetAsync
addListenerAsync, firstAsync, lastAsync, pollFirstAsync, pollLastAsync, randomAsync, randomAsync, rankAsync, readAllAsync, revRankAsyncMethods 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, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncMethods inherited from interface org.redisson.api.RSortedSet
distributedIterator, mapReduce, readAll, readAllAsync, removeAsyncMethods inherited from interface java.util.Set
clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArrayMethods inherited from interface java.util.SortedSet
first, last, spliterator
-
Constructor Details
-
RedissonLexSortedSet
public RedissonLexSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
-
-
Method Details
-
removeRange
public int removeRange(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetRemoves values range starting withfromElementand ending withtoElement.- Specified by:
removeRangein interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements removed
-
removeRangeHead
Description copied from interface:RLexSortedSetRemoves head values range ending withtoElement.- Specified by:
removeRangeHeadin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements removed
-
removeRangeHeadAsync
Description copied from interface:RLexSortedSetAsyncRemoves head values range ending withtoElement.- Specified by:
removeRangeHeadAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements removed
-
removeRangeTail
Description copied from interface:RLexSortedSetRemoves tail values range starting withfromElement.- Specified by:
removeRangeTailin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- number of elements removed
-
removeRangeTailAsync
Description copied from interface:RLexSortedSetAsyncRemoves tail values range starting withfromElement.- Specified by:
removeRangeTailAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- number of elements removed
-
removeRangeAsync
public RFuture<Integer> removeRangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetAsyncRemoves values range starting withfromElementand ending withtoElement.- Specified by:
removeRangeAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements removed
-
range
public Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetReturns values range starting withfromElementand ending withtoElement.- Specified by:
rangein interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeHead
Description copied from interface:RLexSortedSetReturns head values range ending withtoElement.- Specified by:
rangeHeadin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeHeadAsync
Description copied from interface:RLexSortedSetAsyncReturns head values range ending withtoElement.- Specified by:
rangeHeadAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeTail
Description copied from interface:RLexSortedSetReturns tail values range starting withfromElement.- Specified by:
rangeTailin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- collection of elements
-
rangeTailAsync
Description copied from interface:RLexSortedSetAsyncReturns tail values range starting withfromElement.- Specified by:
rangeTailAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- collection of elements
-
rangeAsync
public RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetAsyncReturns values range starting withfromElementand ending withtoElement.- Specified by:
rangeAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
range
public Collection<String> range(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetReturns values range starting withfromElementand ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangein interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeHead
Description copied from interface:RLexSortedSetReturns head values range ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeHeadin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeHeadAsync
public RFuture<Collection<String>> rangeHeadAsync(String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns head values range ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeHeadAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeTail
public Collection<String> rangeTail(String fromElement, boolean fromInclusive, int offset, int count) Description copied from interface:RLexSortedSetReturns tail values range starting withfromElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeTailin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeTailAsync
public RFuture<Collection<String>> rangeTailAsync(String fromElement, boolean fromInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns tail values range starting withfromElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeTailAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeAsync
public RFuture<Collection<String>> rangeAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns values range starting withfromElementand ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeTailReversed
Description copied from interface:RLexSortedSetReturns tail values range in reverse order starting withfromElement.- Specified by:
rangeTailReversedin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- collection of elements
-
rangeHeadReversed
Description copied from interface:RLexSortedSetReturns head values range in reverse order ending withtoElement.- Specified by:
rangeHeadReversedin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeReversed
public Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetReturns values range in reverse order starting withfromElementand ending withtoElement.- Specified by:
rangeReversedin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeTailReversed
public Collection<String> rangeTailReversed(String fromElement, boolean fromInclusive, int offset, int count) Description copied from interface:RLexSortedSetReturns tail values range in reverse order starting withfromElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeTailReversedin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeHeadReversed
public Collection<String> rangeHeadReversed(String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetReturns head values range in reverse order ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeHeadReversedin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeReversed
public Collection<String> rangeReversed(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetReturns values range in reverse order starting withfromElementand ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeReversedin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeTailReversedAsync
public RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive) Description copied from interface:RLexSortedSetAsyncReturns tail values range in reverse order starting withfromElement.- Specified by:
rangeTailReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- collection of elements
-
rangeHeadReversedAsync
Description copied from interface:RLexSortedSetAsyncReturns head values range in reverse order ending withtoElement.- Specified by:
rangeHeadReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeReversedAsync
public RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetAsyncReturns values range in reverse order starting withfromElementand ending withtoElement.- Specified by:
rangeReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- collection of elements
-
rangeTailReversedAsync
public RFuture<Collection<String>> rangeTailReversedAsync(String fromElement, boolean fromInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns tail values range in reverse order starting withfromElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeTailReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeHeadReversedAsync
public RFuture<Collection<String>> rangeHeadReversedAsync(String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns head values range in reverse order ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeHeadReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
rangeReversedAsync
public RFuture<Collection<String>> rangeReversedAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive, int offset, int count) Description copied from interface:RLexSortedSetAsyncReturns values range in reverse order starting withfromElementand ending withtoElement. Returned collection limited bycountand starts withoffset.- Specified by:
rangeReversedAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusiveoffset- - offset of result collectioncount- - amount of result collection- Returns:
- collection of elements
-
countTail
Description copied from interface:RLexSortedSetReturns the number of tail values starting withfromElement.- Specified by:
countTailin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- number of elements
-
countTailAsync
Description copied from interface:RLexSortedSetAsyncReturns the number of tail values starting withfromElement.- Specified by:
countTailAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusive- Returns:
- number of elements
-
countHead
Description copied from interface:RLexSortedSetReturns the number of head values ending withtoElement.- Specified by:
countHeadin interfaceRLexSortedSet- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements
-
countHeadAsync
Description copied from interface:RLexSortedSetAsyncReturns the number of head values ending withtoElement.- Specified by:
countHeadAsyncin interfaceRLexSortedSetAsync- Parameters:
toElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements
-
count
Description copied from interface:RLexSortedSetReturns the number of elements betweenfromElementandtoElement.- Specified by:
countin interfaceRLexSortedSet- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements
-
countAsync
public RFuture<Integer> countAsync(String fromElement, boolean fromInclusive, String toElement, boolean toInclusive) Description copied from interface:RLexSortedSetAsyncReturns the number of elements betweenfromElementandtoElement.- Specified by:
countAsyncin interfaceRLexSortedSetAsync- Parameters:
fromElement- - start elementfromInclusive- - start element inclusivetoElement- - end elementtoInclusive- - end element inclusive- Returns:
- number of elements
-
addAsync
Description copied from interface:RCollectionAsyncAdds element into this collection.- Specified by:
addAsyncin interfaceRCollectionAsync<String>- Specified by:
addAsyncin interfaceRSortedSet<String>- Parameters:
e- - element to add- Returns:
trueif an element was added andfalseif it is already present
-
addAllAsync
Description copied from interface:RCollectionAsyncAdds all elements contained in the specified collection- Specified by:
addAllAsyncin interfaceRCollectionAsync<String>- Parameters:
c- - collection of elements to add- Returns:
trueif at least one element was added andfalseif all elements are already present
-
add
-
addAll
-
range
Description copied from interface:RLexSortedSetReturns values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
rangein interfaceRLexSortedSet- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- collection of elements
-
rangeAsync
Description copied from interface:RLexSortedSetAsyncReturns values by rank range. Indexes are zero based.-1means the highest score,-2means the second highest score.- Specified by:
rangeAsyncin interfaceRLexSortedSetAsync- Parameters:
startIndex- - start indexendIndex- - end index- Returns:
- collection of elements
-
trySetComparator
Description copied from interface:RSortedSetSets new comparator only if current set is empty- Specified by:
trySetComparatorin interfaceRSortedSet<String>- Parameters:
comparator- for values- Returns:
trueif new comparator settedfalseotherwise
-
distributedIterator
Description copied from interface:RSortedSetReturns 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 list name.- Specified by:
distributedIteratorin interfaceRSortedSet<String>- Parameters:
iteratorName- redis object name to which cursor will be savedcount- batch size- Returns:
- shared elements iterator
-
comparator
- Specified by:
comparatorin interfaceSortedSet<String>
-
subSet
-
headSet
-
tailSet
-
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
-
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
-
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.
-
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.
-
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.
-
expireAsync
-
expireAtAsync
-
clearExpireAsync
-