Package org.redisson
Class RedissonScoredSortedSet<V>
- java.lang.Object
-
- org.redisson.RedissonObject
-
- org.redisson.RedissonScoredSortedSet<V>
-
- Type Parameters:
V
- value type
- All Implemented Interfaces:
Iterable<V>
,RExpirable
,RExpirableAsync
,RObject
,RObjectAsync
,RScoredSortedSet<V>
,RScoredSortedSetAsync<V>
,RSortable<Set<V>>
,RSortableAsync<Set<V>>
- Direct Known Subclasses:
RedissonGeo
,RedissonLexSortedSet
public class RedissonScoredSortedSet<V> extends RedissonObject implements RScoredSortedSet<V>
- 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
-
-
Constructor Summary
Constructors Constructor Description RedissonScoredSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
RedissonScoredSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(double score, V object)
Adds element to this set, overrides previous score if it has been already added.int
addAll(Map<V,Double> objects)
RFuture<Integer>
addAllAsync(Map<V,Double> objects)
Integer
addAndGetRank(double score, V object)
Adds element to this set, overrides previous score if it has been already added.RFuture<Integer>
addAndGetRankAsync(double score, V object)
Adds element to this set, overrides previous score if it has been already added.Integer
addAndGetRevRank(double score, V object)
Adds element to this set, overrides previous score if it has been already added.RFuture<Integer>
addAndGetRevRankAsync(double score, V object)
Adds element to this set, overrides previous score if it has been already added.RFuture<Boolean>
addAsync(double score, V object)
Adds element to this set, overrides previous score if it has been already added.Double
addScore(V object, Number value)
Integer
addScoreAndGetRank(V object, Number value)
Adds score to element and returns its rankRFuture<Integer>
addScoreAndGetRankAsync(V object, Number value)
Adds score to element and returns its rankInteger
addScoreAndGetRevRank(V object, Number value)
Adds score to element and returns its reverse rankRFuture<Integer>
addScoreAndGetRevRankAsync(V object, Number value)
Adds score to element and returns its reverse rankRFuture<Double>
addScoreAsync(V object, Number value)
void
clear()
boolean
clearExpire()
Clear an expire timeout or expire date for object.RFuture<Boolean>
clearExpireAsync()
Clear an expire timeout or expire date for object in async mode.boolean
contains(Object object)
boolean
containsAll(Collection<?> c)
RFuture<Boolean>
containsAllAsync(Collection<?> c)
RFuture<Boolean>
containsAsync(Object o)
int
count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns the number of elements with a score betweenstartScore
andendScore
.RFuture<Integer>
countAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns the number of elements with a score betweenstartScore
andendScore
.Collection<ScoredEntry<V>>
entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Collection<ScoredEntry<V>>
entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<ScoredEntry<V>>
entryRange(int startIndex, int endIndex)
RFuture<Collection<ScoredEntry<V>>>
entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
RFuture<Collection<ScoredEntry<V>>>
entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
RFuture<Collection<ScoredEntry<V>>>
entryRangeAsync(int startIndex, int endIndex)
Collection<ScoredEntry<V>>
entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Collection<ScoredEntry<V>>
entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<ScoredEntry<V>>
entryRangeReversed(int startIndex, int endIndex)
RFuture<Collection<ScoredEntry<V>>>
entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
RFuture<Collection<ScoredEntry<V>>>
entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
RFuture<Collection<ScoredEntry<V>>>
entryRangeReversedAsync(int startIndex, int endIndex)
boolean
expire(long timeToLive, TimeUnit timeUnit)
Set a timeout for object.RFuture<Boolean>
expireAsync(long timeToLive, TimeUnit timeUnit)
Set a timeout for object in async mode.boolean
expireAt(long timestamp)
Set an expire date for object.boolean
expireAt(Date timestamp)
Set an expire date for object.RFuture<Boolean>
expireAtAsync(long timestamp)
Set an expire date for object in async mode.RFuture<Boolean>
expireAtAsync(Date timestamp)
Set an expire date for object in async mode.V
first()
Returns the head element ornull
if this sorted set is empty.RFuture<V>
firstAsync()
Returns the head element ornull
if this sorted set is empty.Double
firstScore()
Returns score of the tail element or returnsnull
if this sorted set is empty.RFuture<Double>
firstScoreAsync()
Returns score of the head element or returnsnull
if this sorted set is empty.Double
getScore(V o)
Returns score of element ornull
if it doesn't exist.RFuture<Double>
getScoreAsync(V o)
Returns score of element ornull
if it doesn't exist.int
intersection(String... names)
Intersect provided ScoredSortedSets and store result to current ScoredSortedSetint
intersection(Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetint
intersection(RScoredSortedSet.Aggregate aggregate, String... names)
Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetint
intersection(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetRFuture<Integer>
intersectionAsync(String... names)
Intersect provided ScoredSortedSets and store result to current ScoredSortedSetRFuture<Integer>
intersectionAsync(Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetRFuture<Integer>
intersectionAsync(RScoredSortedSet.Aggregate aggregate, String... names)
Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetRFuture<Integer>
intersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetboolean
isEmpty()
Returnstrue
if this set is emptyIterator<V>
iterator()
Iterator<V>
iterator(int count)
Returns an iterator over elements in this set.Iterator<V>
iterator(String pattern)
Returns an iterator over elements in this set.Iterator<V>
iterator(String pattern, int count)
Returns an iterator over elements in this set.V
last()
Returns the tail element ornull
if this sorted set is empty.RFuture<V>
lastAsync()
Returns the tail element ornull
if this sorted set is empty.Double
lastScore()
Returns score of the head element or returnsnull
if this sorted set is empty.RFuture<Double>
lastScoreAsync()
Returns score of the tail element or returnsnull
if this sorted set is empty.<KOut,VOut>
RCollectionMapReduce<V,KOut,VOut>mapReduce()
ReturnsRMapReduce
object associated with this objectV
pollFirst()
Removes and returns the head element ornull
if this sorted set is empty.Collection<V>
pollFirst(int count)
Removes and returns the head elements ornull
if this sorted set is empty.V
pollFirst(long timeout, TimeUnit unit)
Removes and returns the head element ornull
if this sorted set is empty.RFuture<V>
pollFirstAsync()
Removes and returns the head element ornull
if this sorted set is empty.RFuture<Collection<V>>
pollFirstAsync(int count)
Removes and returns the head elements ornull
if this sorted set is empty.RFuture<V>
pollFirstAsync(long timeout, TimeUnit unit)
Removes and returns the head element ornull
if this sorted set is empty.V
pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames)
Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.RFuture<V>
pollFirstFromAnyAsync(long timeout, TimeUnit unit, String... queueNames)
Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.V
pollLast()
Removes and returns the tail element ornull
if this sorted set is empty.Collection<V>
pollLast(int count)
Removes and returns the tail elements ornull
if this sorted set is empty.V
pollLast(long timeout, TimeUnit unit)
Removes and returns the tail element ornull
if this sorted set is empty.RFuture<V>
pollLastAsync()
Removes and returns the tail element ornull
if this sorted set is empty.RFuture<Collection<V>>
pollLastAsync(int count)
Removes and returns the tail elements ornull
if this sorted set is empty.RFuture<V>
pollLastAsync(long timeout, TimeUnit unit)
Removes and returns the tail element ornull
if this sorted set is empty.V
pollLastFromAny(long timeout, TimeUnit unit, String... queueNames)
Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.RFuture<V>
pollLastFromAnyAsync(long timeout, TimeUnit unit, String... queueNames)
Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Integer
rank(V o)
Returns rank of value, with the scores ordered from low to high.RFuture<Integer>
rankAsync(V o)
Returns rank of value, with the scores ordered from low to high.Collection<V>
readAll()
Read all values at once.RFuture<Collection<V>>
readAllAsync()
Read all values at once.<T> Collection<T>
readSort(String byPattern, List<String> getPatterns, SortOrder order)
Read data in sorted view<T> Collection<T>
readSort(String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Read data in sorted viewSet<V>
readSort(String byPattern, SortOrder order)
Read data in sorted viewSet<V>
readSort(String byPattern, SortOrder order, int offset, int count)
Read data in sorted viewSet<V>
readSort(SortOrder order)
Read data in sorted viewSet<V>
readSort(SortOrder order, int offset, int count)
Read 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 lexicographicallySet<V>
readSortAlpha(String byPattern, SortOrder order)
Read data in sorted view lexicographicallySet<V>
readSortAlpha(String byPattern, SortOrder order, int offset, int count)
Read data in sorted view lexicographicallySet<V>
readSortAlpha(SortOrder order)
Read data in sorted view lexicographicallySet<V>
readSortAlpha(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 lexicographicallyRFuture<Set<V>>
readSortAlphaAsync(String byPattern, SortOrder order)
Read data in sorted view lexicographicallyRFuture<Set<V>>
readSortAlphaAsync(String byPattern, SortOrder order, int offset, int count)
Read data in sorted view lexicographicallyRFuture<Set<V>>
readSortAlphaAsync(SortOrder order)
Read data in sorted view lexicographicallyRFuture<Set<V>>
readSortAlphaAsync(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 viewRFuture<Set<V>>
readSortAsync(String byPattern, SortOrder order)
Read data in sorted viewRFuture<Set<V>>
readSortAsync(String byPattern, SortOrder order, int offset, int count)
Read data in sorted viewRFuture<Set<V>>
readSortAsync(SortOrder order)
Read data in sorted viewRFuture<Set<V>>
readSortAsync(SortOrder order, int offset, int count)
Read data in sorted viewlong
remainTimeToLive()
Remaining time to live of Redisson object that has a timeoutRFuture<Long>
remainTimeToLiveAsync()
Remaining time to live of Redisson object that has a timeoutboolean
remove(Object object)
boolean
removeAll(Collection<?> c)
RFuture<Boolean>
removeAllAsync(Collection<?> c)
RFuture<Boolean>
removeAsync(Object object)
int
removeRangeByRank(int startIndex, int endIndex)
RFuture<Integer>
removeRangeByRankAsync(int startIndex, int endIndex)
int
removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
RFuture<Integer>
removeRangeByScoreAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
boolean
retainAll(Collection<?> c)
RFuture<Boolean>
retainAllAsync(Collection<?> c)
Integer
revRank(V o)
Returns rank of value, with the scores ordered from high to low.RFuture<Integer>
revRankAsync(V o)
Returns rank of value, with the scores ordered from high to low.RFuture<ListScanResult<Object>>
scanIteratorAsync(RedisClient client, long startPos, String pattern, int count)
int
size()
Returns size of this set.RFuture<Integer>
sizeAsync()
int
sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, String byPattern, SortOrder order, int offset, int count)
Sort data and store todestName
listint
sortTo(String destName, SortOrder order)
Sort data and store todestName
listint
sortTo(String destName, SortOrder order, int offset, int count)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order, int offset, int count)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, String byPattern, SortOrder order)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, String byPattern, SortOrder order, int offset, int count)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, SortOrder order)
Sort data and store todestName
listRFuture<Integer>
sortToAsync(String destName, SortOrder order, int offset, int count)
Sort data and store todestName
listObject[]
toArray()
<T> T[]
toArray(T[] a)
boolean
tryAdd(double score, V object)
Adds element to this set only if has not been added before.RFuture<Boolean>
tryAddAsync(double score, V object)
Adds element to this set only if has not been added before.int
union(String... names)
Union provided ScoredSortedSets and store result to current ScoredSortedSetint
union(Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetint
union(RScoredSortedSet.Aggregate aggregate, String... names)
Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetint
union(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetRFuture<Integer>
unionAsync(String... names)
Union provided ScoredSortedSets and store result to current ScoredSortedSetRFuture<Integer>
unionAsync(Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSetRFuture<Integer>
unionAsync(RScoredSortedSet.Aggregate aggregate, String... names)
Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSetRFuture<Integer>
unionAsync(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSetCollection<V>
valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns all values betweenstartScore
andendScore
.Collection<V>
valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<V>
valueRange(int startIndex, int endIndex)
RFuture<Collection<V>>
valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns all values betweenstartScore
andendScore
.RFuture<Collection<V>>
valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
RFuture<Collection<V>>
valueRangeAsync(int startIndex, int endIndex)
Collection<V>
valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns all values betweenstartScore
andendScore
in reversed order.Collection<V>
valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
Collection<V>
valueRangeReversed(int startIndex, int endIndex)
RFuture<Collection<V>>
valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Returns all values betweenstartScore
andendScore
in reversed order.RFuture<Collection<V>>
valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
RFuture<Collection<V>>
valueRangeReversedAsync(int startIndex, int endIndex)
-
Methods inherited from class org.redisson.RedissonObject
await, copy, copyAsync, delete, deleteAsync, dump, dumpAsync, encode, encode, encode, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getCodec, getName, getName, isExists, isExistsAsync, migrate, migrateAsync, move, moveAsync, prefixName, rename, renameAsync, renamenx, renamenxAsync, restore, restore, restoreAndReplace, restoreAndReplace, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, suffixName, toSeconds, touch, touchAsync, unlink, unlinkAsync
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.redisson.api.RExpirable
clearExpire, expire, expireAt, expireAt, remainTimeToLive
-
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
-
Methods inherited from interface org.redisson.api.RObject
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
-
Methods inherited from interface org.redisson.api.RObjectAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
-
-
-
-
Constructor Detail
-
RedissonScoredSortedSet
public RedissonScoredSortedSet(CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
-
RedissonScoredSortedSet
public RedissonScoredSortedSet(Codec codec, CommandAsyncExecutor commandExecutor, String name, RedissonClient redisson)
-
-
Method Detail
-
mapReduce
public <KOut,VOut> RCollectionMapReduce<V,KOut,VOut> mapReduce()
Description copied from interface:RScoredSortedSet
ReturnsRMapReduce
object associated with this object- Specified by:
mapReduce
in interfaceRScoredSortedSet<V>
- Type Parameters:
KOut
- output keyVOut
- output value- Returns:
- MapReduce instance
-
readAll
public Collection<V> readAll()
Description copied from interface:RScoredSortedSet
Read all values at once.- Specified by:
readAll
in interfaceRScoredSortedSet<V>
- Returns:
- values
-
readAllAsync
public RFuture<Collection<V>> readAllAsync()
Description copied from interface:RScoredSortedSetAsync
Read all values at once.- Specified by:
readAllAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- values
-
pollFirst
public V pollFirst()
Description copied from interface:RScoredSortedSet
Removes and returns the head element ornull
if this sorted set is empty.- Specified by:
pollFirst
in interfaceRScoredSortedSet<V>
- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollLast
public V pollLast()
Description copied from interface:RScoredSortedSet
Removes and returns the tail element ornull
if this sorted set is empty.- Specified by:
pollLast
in interfaceRScoredSortedSet<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
pollFirst
public Collection<V> pollFirst(int count)
Description copied from interface:RScoredSortedSet
Removes and returns the head elements ornull
if this sorted set is empty.- Specified by:
pollFirst
in interfaceRScoredSortedSet<V>
- Parameters:
count
- - elements amount- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollLast
public Collection<V> pollLast(int count)
Description copied from interface:RScoredSortedSet
Removes and returns the tail elements ornull
if this sorted set is empty.- Specified by:
pollLast
in interfaceRScoredSortedSet<V>
- Parameters:
count
- - elements amount- Returns:
- the tail element or
null
if this sorted set is empty
-
pollFirstAsync
public RFuture<Collection<V>> pollFirstAsync(int count)
Description copied from interface:RScoredSortedSetAsync
Removes and returns the head elements ornull
if this sorted set is empty.- Specified by:
pollFirstAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
count
- - elements amount- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollLastAsync
public RFuture<Collection<V>> pollLastAsync(int count)
Description copied from interface:RScoredSortedSetAsync
Removes and returns the tail elements ornull
if this sorted set is empty.- Specified by:
pollLastAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
count
- - elements amount- Returns:
- the tail element or
null
if this sorted set is empty
-
pollFirstAsync
public RFuture<V> pollFirstAsync()
Description copied from interface:RScoredSortedSetAsync
Removes and returns the head element ornull
if this sorted set is empty.- Specified by:
pollFirstAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollLastAsync
public RFuture<V> pollLastAsync()
Description copied from interface:RScoredSortedSetAsync
Removes and returns the tail element ornull
if this sorted set is empty.- Specified by:
pollLastAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
pollFirst
public V pollFirst(long timeout, TimeUnit unit)
Description copied from interface:RScoredSortedSet
Removes and returns the head element ornull
if this sorted set is empty.- Specified by:
pollFirst
in interfaceRScoredSortedSet<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameter- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollFirstAsync
public RFuture<V> pollFirstAsync(long timeout, TimeUnit unit)
Description copied from interface:RScoredSortedSetAsync
Removes and returns the head element ornull
if this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameter- Returns:
- the head element,
or
null
if this sorted set is empty
-
pollFirstFromAny
public V pollFirstFromAny(long timeout, TimeUnit unit, String... queueNames)
Description copied from interface:RScoredSortedSet
Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstFromAny
in interfaceRScoredSortedSet<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameterqueueNames
- - names of queue- Returns:
- the head element, or
null
if all sorted sets are empty
-
pollFirstFromAnyAsync
public RFuture<V> pollFirstFromAnyAsync(long timeout, TimeUnit unit, String... queueNames)
Description copied from interface:RScoredSortedSetAsync
Removes and returns first available head element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollFirstFromAnyAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameterqueueNames
- - names of queue- Returns:
- the head element, or
null
if all sorted sets are empty
-
pollLastFromAny
public V pollLastFromAny(long timeout, TimeUnit unit, String... queueNames)
Description copied from interface:RScoredSortedSet
Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastFromAny
in interfaceRScoredSortedSet<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameterqueueNames
- - names of queue- Returns:
- the tail element, or
null
if all sorted sets are empty
-
pollLastFromAnyAsync
public RFuture<V> pollLastFromAnyAsync(long timeout, TimeUnit unit, String... queueNames)
Description copied from interface:RScoredSortedSetAsync
Removes and returns first available tail element of any sorted set, waiting up to the specified wait time if necessary for an element to become available in any of defined sorted sets including this one.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastFromAnyAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameterqueueNames
- - names of queue- Returns:
- the tail element, or
null
if all sorted sets are empty
-
pollLast
public V pollLast(long timeout, TimeUnit unit)
Description copied from interface:RScoredSortedSet
Removes and returns the tail element ornull
if this sorted set is empty.- Specified by:
pollLast
in interfaceRScoredSortedSet<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameter- Returns:
- the tail element or
null
if this sorted set is empty
-
pollLastAsync
public RFuture<V> pollLastAsync(long timeout, TimeUnit unit)
Description copied from interface:RScoredSortedSetAsync
Removes and returns the tail element ornull
if this sorted set is empty.Requires Redis 5.0.0 and higher.
- Specified by:
pollLastAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
timeout
- how long to wait before giving up, in units ofunit
unit
- aTimeUnit
determining how to interpret thetimeout
parameter- Returns:
- the tail element or
null
if this sorted set is empty
-
add
public boolean add(double score, V object)
Description copied from interface:RScoredSortedSet
Adds element to this set, overrides previous score if it has been already added.- Specified by:
add
in interfaceRScoredSortedSet<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
true
if element has added andfalse
if not.
-
addAndGetRank
public Integer addAndGetRank(double score, V object)
Description copied from interface:RScoredSortedSet
Adds element to this set, overrides previous score if it has been already added. Finally return the rank of the item- Specified by:
addAndGetRank
in interfaceRScoredSortedSet<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
- rank
-
addAndGetRankAsync
public RFuture<Integer> addAndGetRankAsync(double score, V object)
Description copied from interface:RScoredSortedSetAsync
Adds element to this set, overrides previous score if it has been already added. Finally return the rank of the item- Specified by:
addAndGetRankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
- rank
-
addAndGetRevRank
public Integer addAndGetRevRank(double score, V object)
Description copied from interface:RScoredSortedSet
Adds element to this set, overrides previous score if it has been already added. Finally return the reverse rank of the item- Specified by:
addAndGetRevRank
in interfaceRScoredSortedSet<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
- reverse rank
-
addAndGetRevRankAsync
public RFuture<Integer> addAndGetRevRankAsync(double score, V object)
Description copied from interface:RScoredSortedSetAsync
Adds element to this set, overrides previous score if it has been already added. Finally return the reverse rank of the item- Specified by:
addAndGetRevRankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
- reverse rank
-
tryAdd
public boolean tryAdd(double score, V object)
Description copied from interface:RScoredSortedSet
Adds element to this set only if has not been added before.Works only with Redis 3.0.2 and higher.
- Specified by:
tryAdd
in interfaceRScoredSortedSet<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
true
if element has added andfalse
if not.
-
first
public V first()
Description copied from interface:RScoredSortedSet
Returns the head element ornull
if this sorted set is empty.- Specified by:
first
in interfaceRScoredSortedSet<V>
- Returns:
- the head element or
null
if this sorted set is empty
-
firstAsync
public RFuture<V> firstAsync()
Description copied from interface:RScoredSortedSetAsync
Returns the head element ornull
if this sorted set is empty.- Specified by:
firstAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the head element or
null
if this sorted set is empty
-
last
public V last()
Description copied from interface:RScoredSortedSet
Returns the tail element ornull
if this sorted set is empty.- Specified by:
last
in interfaceRScoredSortedSet<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
lastAsync
public RFuture<V> lastAsync()
Description copied from interface:RScoredSortedSetAsync
Returns the tail element ornull
if this sorted set is empty.- Specified by:
lastAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
firstScore
public Double firstScore()
Description copied from interface:RScoredSortedSet
Returns score of the tail element or returnsnull
if this sorted set is empty.- Specified by:
firstScore
in interfaceRScoredSortedSet<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
firstScoreAsync
public RFuture<Double> firstScoreAsync()
Description copied from interface:RScoredSortedSetAsync
Returns score of the head element or returnsnull
if this sorted set is empty.- Specified by:
firstScoreAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
lastScore
public Double lastScore()
Description copied from interface:RScoredSortedSet
Returns score of the head element or returnsnull
if this sorted set is empty.- Specified by:
lastScore
in interfaceRScoredSortedSet<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
lastScoreAsync
public RFuture<Double> lastScoreAsync()
Description copied from interface:RScoredSortedSetAsync
Returns score of the tail element or returnsnull
if this sorted set is empty.- Specified by:
lastScoreAsync
in interfaceRScoredSortedSetAsync<V>
- Returns:
- the tail element or
null
if this sorted set is empty
-
addAsync
public RFuture<Boolean> addAsync(double score, V object)
Description copied from interface:RScoredSortedSetAsync
Adds element to this set, overrides previous score if it has been already added.- Specified by:
addAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
true
if element has added andfalse
if not.
-
addAll
public int addAll(Map<V,Double> objects)
- Specified by:
addAll
in interfaceRScoredSortedSet<V>
-
addAllAsync
public RFuture<Integer> addAllAsync(Map<V,Double> objects)
- Specified by:
addAllAsync
in interfaceRScoredSortedSetAsync<V>
-
tryAddAsync
public RFuture<Boolean> tryAddAsync(double score, V object)
Description copied from interface:RScoredSortedSetAsync
Adds element to this set only if has not been added before.Requires Redis 3.0.2 and higher.
- Specified by:
tryAddAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
score
- - object scoreobject
- - object itself- Returns:
true
if element has added andfalse
if not.
-
remove
public boolean remove(Object object)
- Specified by:
remove
in interfaceRScoredSortedSet<V>
-
removeRangeByRank
public int removeRangeByRank(int startIndex, int endIndex)
- Specified by:
removeRangeByRank
in interfaceRScoredSortedSet<V>
-
removeRangeByRankAsync
public RFuture<Integer> removeRangeByRankAsync(int startIndex, int endIndex)
- Specified by:
removeRangeByRankAsync
in interfaceRScoredSortedSetAsync<V>
-
removeRangeByScore
public int removeRangeByScore(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
removeRangeByScore
in interfaceRScoredSortedSet<V>
-
removeRangeByScoreAsync
public RFuture<Integer> removeRangeByScoreAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
removeRangeByScoreAsync
in interfaceRScoredSortedSetAsync<V>
-
clear
public void clear()
- Specified by:
clear
in interfaceRScoredSortedSet<V>
-
removeAsync
public RFuture<Boolean> removeAsync(Object object)
- Specified by:
removeAsync
in interfaceRScoredSortedSetAsync<V>
-
isEmpty
public boolean isEmpty()
Description copied from interface:RScoredSortedSet
Returnstrue
if this set is empty- Specified by:
isEmpty
in interfaceRScoredSortedSet<V>
- Returns:
true
if empty
-
size
public int size()
Description copied from interface:RScoredSortedSet
Returns size of this set.- Specified by:
size
in interfaceRScoredSortedSet<V>
- Returns:
- size
-
sizeAsync
public RFuture<Integer> sizeAsync()
- Specified by:
sizeAsync
in interfaceRScoredSortedSetAsync<V>
-
contains
public boolean contains(Object object)
- Specified by:
contains
in interfaceRScoredSortedSet<V>
-
containsAsync
public RFuture<Boolean> containsAsync(Object o)
- Specified by:
containsAsync
in interfaceRScoredSortedSetAsync<V>
-
getScore
public Double getScore(V o)
Description copied from interface:RScoredSortedSet
Returns score of element ornull
if it doesn't exist.- Specified by:
getScore
in interfaceRScoredSortedSet<V>
- Parameters:
o
- - element- Returns:
- score
-
getScoreAsync
public RFuture<Double> getScoreAsync(V o)
Description copied from interface:RScoredSortedSetAsync
Returns score of element ornull
if it doesn't exist.- Specified by:
getScoreAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
o
- - element- Returns:
- score
-
rank
public Integer rank(V o)
Description copied from interface:RScoredSortedSet
Returns rank of value, with the scores ordered from low to high.- Specified by:
rank
in interfaceRScoredSortedSet<V>
- Parameters:
o
- - object- Returns:
- rank or
null
if value does not exist
-
rankAsync
public RFuture<Integer> rankAsync(V o)
Description copied from interface:RScoredSortedSetAsync
Returns rank of value, with the scores ordered from low to high.- Specified by:
rankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
o
- - object- Returns:
- rank or
null
if value does not exist
-
scanIteratorAsync
public RFuture<ListScanResult<Object>> scanIteratorAsync(RedisClient client, long startPos, String pattern, int count)
-
iterator
public Iterator<V> iterator(String pattern)
Description copied from interface:RScoredSortedSet
Returns an iterator over elements in this set. Ifpattern
is not null then only elements match this pattern are loaded.- Specified by:
iterator
in interfaceRScoredSortedSet<V>
- Parameters:
pattern
- - search pattern- Returns:
- iterator
-
iterator
public Iterator<V> iterator(int count)
Description copied from interface:RScoredSortedSet
Returns an iterator over elements in this set. Elements are loaded in batch. Batch size is defined bycount
param.- Specified by:
iterator
in interfaceRScoredSortedSet<V>
- Parameters:
count
- - size of elements batch- Returns:
- iterator
-
iterator
public Iterator<V> iterator(String pattern, int count)
Description copied from interface:RScoredSortedSet
Returns an iterator over elements in this set. Elements are loaded in batch. Batch size is defined bycount
param. If pattern is not null then only elements match this pattern are loaded.- Specified by:
iterator
in interfaceRScoredSortedSet<V>
- Parameters:
pattern
- - search patterncount
- - size of elements batch- Returns:
- iterator
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceRScoredSortedSet<V>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceRScoredSortedSet<V>
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interfaceRScoredSortedSet<V>
-
containsAllAsync
public RFuture<Boolean> containsAllAsync(Collection<?> c)
- Specified by:
containsAllAsync
in interfaceRScoredSortedSetAsync<V>
-
removeAllAsync
public RFuture<Boolean> removeAllAsync(Collection<?> c)
- Specified by:
removeAllAsync
in interfaceRScoredSortedSetAsync<V>
-
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interfaceRScoredSortedSet<V>
-
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interfaceRScoredSortedSet<V>
-
retainAllAsync
public RFuture<Boolean> retainAllAsync(Collection<?> c)
- Specified by:
retainAllAsync
in interfaceRScoredSortedSetAsync<V>
-
addScore
public Double addScore(V object, Number value)
- Specified by:
addScore
in interfaceRScoredSortedSet<V>
-
addScoreAsync
public RFuture<Double> addScoreAsync(V object, Number value)
- Specified by:
addScoreAsync
in interfaceRScoredSortedSetAsync<V>
-
addScoreAndGetRank
public Integer addScoreAndGetRank(V object, Number value)
Description copied from interface:RScoredSortedSet
Adds score to element and returns its rank- Specified by:
addScoreAndGetRank
in interfaceRScoredSortedSet<V>
- Parameters:
object
- - object itselfvalue
- - object score- Returns:
- rank
-
addScoreAndGetRankAsync
public RFuture<Integer> addScoreAndGetRankAsync(V object, Number value)
Description copied from interface:RScoredSortedSetAsync
Adds score to element and returns its rank- Specified by:
addScoreAndGetRankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
object
- - object itselfvalue
- - object score- Returns:
- rank
-
addScoreAndGetRevRank
public Integer addScoreAndGetRevRank(V object, Number value)
Description copied from interface:RScoredSortedSet
Adds score to element and returns its reverse rank- Specified by:
addScoreAndGetRevRank
in interfaceRScoredSortedSet<V>
- Parameters:
object
- - object itselfvalue
- - object score- Returns:
- reverse rank
-
addScoreAndGetRevRankAsync
public RFuture<Integer> addScoreAndGetRevRankAsync(V object, Number value)
Description copied from interface:RScoredSortedSetAsync
Adds score to element and returns its reverse rank- Specified by:
addScoreAndGetRevRankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
object
- - object itselfvalue
- - object score- Returns:
- reverse rank
-
valueRange
public Collection<V> valueRange(int startIndex, int endIndex)
- Specified by:
valueRange
in interfaceRScoredSortedSet<V>
-
valueRangeAsync
public RFuture<Collection<V>> valueRangeAsync(int startIndex, int endIndex)
- Specified by:
valueRangeAsync
in interfaceRScoredSortedSetAsync<V>
-
valueRangeReversed
public Collection<V> valueRangeReversed(int startIndex, int endIndex)
- Specified by:
valueRangeReversed
in interfaceRScoredSortedSet<V>
-
valueRangeReversedAsync
public RFuture<Collection<V>> valueRangeReversedAsync(int startIndex, int endIndex)
- Specified by:
valueRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
-
entryRange
public Collection<ScoredEntry<V>> entryRange(int startIndex, int endIndex)
- Specified by:
entryRange
in interfaceRScoredSortedSet<V>
-
entryRangeAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeAsync(int startIndex, int endIndex)
- Specified by:
entryRangeAsync
in interfaceRScoredSortedSetAsync<V>
-
entryRangeReversed
public Collection<ScoredEntry<V>> entryRangeReversed(int startIndex, int endIndex)
- Specified by:
entryRangeReversed
in interfaceRScoredSortedSet<V>
-
entryRangeReversedAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeReversedAsync(int startIndex, int endIndex)
- Specified by:
entryRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
-
valueRange
public Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSet
Returns all values betweenstartScore
andendScore
.- Specified by:
valueRange
in interfaceRScoredSortedSet<V>
- Parameters:
startScore
- - start score. UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive
- - start score inclusiveendScore
- - end score UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive
- - end score inclusive- Returns:
- values
-
valueRangeAsync
public RFuture<Collection<V>> valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSetAsync
Returns all values betweenstartScore
andendScore
.- Specified by:
valueRangeAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
startScore
- - start score. UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive
- - start score inclusiveendScore
- - end score UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive
- - end score inclusive- Returns:
- values
-
valueRangeReversed
public Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSet
Returns all values betweenstartScore
andendScore
in reversed order.- Specified by:
valueRangeReversed
in interfaceRScoredSortedSet<V>
- Parameters:
startScore
- - start score. UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive
- - start score inclusiveendScore
- - end score UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive
- - end score inclusive- Returns:
- values
-
valueRangeReversedAsync
public RFuture<Collection<V>> valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSetAsync
Returns all values betweenstartScore
andendScore
in reversed order.- Specified by:
valueRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
startScore
- - start score. UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersstartScoreInclusive
- - start score inclusiveendScore
- - end score UseDouble.POSITIVE_INFINITY
orDouble.NEGATIVE_INFINITY
to define infinity numbersendScoreInclusive
- - end score inclusive- Returns:
- values
-
entryRange
public Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
entryRange
in interfaceRScoredSortedSet<V>
-
entryRangeAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
entryRangeAsync
in interfaceRScoredSortedSetAsync<V>
-
valueRange
public Collection<V> valueRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
valueRange
in interfaceRScoredSortedSet<V>
-
valueRangeAsync
public RFuture<Collection<V>> valueRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
valueRangeAsync
in interfaceRScoredSortedSetAsync<V>
-
valueRangeReversed
public Collection<V> valueRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
valueRangeReversed
in interfaceRScoredSortedSet<V>
-
valueRangeReversedAsync
public RFuture<Collection<V>> valueRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
valueRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
-
entryRange
public Collection<ScoredEntry<V>> entryRange(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
entryRange
in interfaceRScoredSortedSet<V>
-
entryRangeReversed
public Collection<ScoredEntry<V>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
entryRangeReversed
in interfaceRScoredSortedSet<V>
-
entryRangeAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
entryRangeAsync
in interfaceRScoredSortedSetAsync<V>
-
entryRangeReversed
public Collection<ScoredEntry<V>> entryRangeReversed(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
entryRangeReversed
in interfaceRScoredSortedSet<V>
-
entryRangeReversedAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
- Specified by:
entryRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
-
entryRangeReversedAsync
public RFuture<Collection<ScoredEntry<V>>> entryRangeReversedAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive, int offset, int count)
- Specified by:
entryRangeReversedAsync
in interfaceRScoredSortedSetAsync<V>
-
revRankAsync
public RFuture<Integer> revRankAsync(V o)
Description copied from interface:RScoredSortedSetAsync
Returns rank of value, with the scores ordered from high to low.- Specified by:
revRankAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
o
- - object- Returns:
- rank or
null
if value does not exist
-
revRank
public Integer revRank(V o)
Description copied from interface:RScoredSortedSet
Returns rank of value, with the scores ordered from high to low.- Specified by:
revRank
in interfaceRScoredSortedSet<V>
- Parameters:
o
- - object- Returns:
- rank or
null
if value does not exist
-
count
public int count(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSet
Returns the number of elements with a score betweenstartScore
andendScore
.- Specified by:
count
in interfaceRScoredSortedSet<V>
- Parameters:
startScore
- - start scorestartScoreInclusive
- - start score inclusiveendScore
- - end scoreendScoreInclusive
- - end score inclusive- Returns:
- count of elements
-
countAsync
public RFuture<Integer> countAsync(double startScore, boolean startScoreInclusive, double endScore, boolean endScoreInclusive)
Description copied from interface:RScoredSortedSetAsync
Returns the number of elements with a score betweenstartScore
andendScore
.- Specified by:
countAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
startScore
- - start scorestartScoreInclusive
- - start score inclusiveendScore
- - end scoreendScoreInclusive
- - end score inclusive- Returns:
- count
-
intersection
public int intersection(String... names)
Description copied from interface:RScoredSortedSet
Intersect provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
intersection
in interfaceRScoredSortedSet<V>
- Parameters:
names
- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersectionAsync
public RFuture<Integer> intersectionAsync(String... names)
Description copied from interface:RScoredSortedSetAsync
Intersect provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
intersectionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
names
- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersection
public int intersection(RScoredSortedSet.Aggregate aggregate, String... names)
Description copied from interface:RScoredSortedSet
Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersection
in interfaceRScoredSortedSet<V>
- Parameters:
aggregate
- - score aggregation modenames
- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersectionAsync
public RFuture<Integer> intersectionAsync(RScoredSortedSet.Aggregate aggregate, String... names)
Description copied from interface:RScoredSortedSetAsync
Intersect provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
aggregate
- - score aggregation modenames
- - names of ScoredSortedSet- Returns:
- length of intersection
-
intersection
public int intersection(Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSet
Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
intersection
in interfaceRScoredSortedSet<V>
- Parameters:
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersectionAsync
public RFuture<Integer> intersectionAsync(Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSetAsync
Intersect provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
intersectionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersection
public int intersection(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSet
Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersection
in interfaceRScoredSortedSet<V>
- Parameters:
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
intersectionAsync
public RFuture<Integer> intersectionAsync(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSetAsync
Intersect provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
intersectionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of intersection
-
union
public int union(String... names)
Description copied from interface:RScoredSortedSet
Union provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
union
in interfaceRScoredSortedSet<V>
- Parameters:
names
- - names of ScoredSortedSet- Returns:
- length of union
-
unionAsync
public RFuture<Integer> unionAsync(String... names)
Description copied from interface:RScoredSortedSetAsync
Union provided ScoredSortedSets and store result to current ScoredSortedSet- Specified by:
unionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
names
- - names of ScoredSortedSet- Returns:
- length of union
-
union
public int union(RScoredSortedSet.Aggregate aggregate, String... names)
Description copied from interface:RScoredSortedSet
Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
union
in interfaceRScoredSortedSet<V>
- Parameters:
aggregate
- - score aggregation modenames
- - names of ScoredSortedSet- Returns:
- length of union
-
unionAsync
public RFuture<Integer> unionAsync(RScoredSortedSet.Aggregate aggregate, String... names)
Description copied from interface:RScoredSortedSetAsync
Union provided ScoredSortedSets with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
aggregate
- - score aggregation modenames
- - names of ScoredSortedSet- Returns:
- length of union
-
union
public int union(Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSet
Union provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
union
in interfaceRScoredSortedSet<V>
- Parameters:
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
unionAsync
public RFuture<Integer> unionAsync(Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSetAsync
Union provided ScoredSortedSets mapped to weight multiplier and store result to current ScoredSortedSet- Specified by:
unionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
nameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
union
public int union(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSet
Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
union
in interfaceRScoredSortedSet<V>
- Parameters:
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
unionAsync
public RFuture<Integer> unionAsync(RScoredSortedSet.Aggregate aggregate, Map<String,Double> nameWithWeight)
Description copied from interface:RScoredSortedSetAsync
Union provided ScoredSortedSets mapped to weight multiplier with defined aggregation method and store result to current ScoredSortedSet- Specified by:
unionAsync
in interfaceRScoredSortedSetAsync<V>
- Parameters:
aggregate
- - score aggregation modenameWithWeight
- - name of ScoredSortedSet mapped to weight multiplier- Returns:
- length of union
-
readSort
public Set<V> readSort(SortOrder order)
Description copied from interface:RSortable
Read data in sorted view
-
readSortAsync
public RFuture<Set<V>> readSortAsync(SortOrder order)
Description copied from interface:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in interfaceRSortableAsync<V>
- Parameters:
order
- for sorted data- Returns:
- sorted collection
-
readSort
public Set<V> readSort(SortOrder order, int offset, int count)
Description copied from interface:RSortable
Read data in sorted view
-
readSortAsync
public RFuture<Set<V>> readSortAsync(SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in interfaceRSortableAsync<V>
- Parameters:
order
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection
-
readSort
public Set<V> readSort(String byPattern, SortOrder order)
Description copied from interface:RSortable
Read data in sorted view
-
readSortAsync
public RFuture<Set<V>> readSortAsync(String byPattern, SortOrder order)
Description copied from interface:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in interfaceRSortableAsync<V>
- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- sorted collection
-
readSort
public Set<V> readSort(String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortable
Read data in sorted view
-
readSortAsync
public RFuture<Set<V>> readSortAsync(String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in 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
public <T> Collection<T> readSort(String byPattern, List<String> getPatterns, SortOrder order)
Description copied from interface:RSortable
Read data in sorted view
-
readSortAsync
public <T> RFuture<Collection<T>> readSortAsync(String byPattern, List<String> getPatterns, SortOrder order)
Description copied from interface:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in 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:RSortable
Read data in sorted view- Specified by:
readSort
in 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:RSortableAsync
Read data in sorted view- Specified by:
readSortAsync
in 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
public Set<V> readSortAlpha(SortOrder order)
Description copied from interface:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in interfaceRSortable<V>
- Parameters:
order
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
public Set<V> readSortAlpha(SortOrder order, int offset, int count)
Description copied from interface:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in interfaceRSortable<V>
- Parameters:
order
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
public Set<V> readSortAlpha(String byPattern, SortOrder order)
Description copied from interface:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in interfaceRSortable<V>
- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlpha
public Set<V> readSortAlpha(String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in 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
public <T> Collection<T> readSortAlpha(String byPattern, List<String> getPatterns, SortOrder order)
Description copied from interface:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in 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:RSortable
Read data in sorted view lexicographically- Specified by:
readSortAlpha
in 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
public RFuture<Set<V>> readSortAlphaAsync(SortOrder order)
Description copied from interface:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in interfaceRSortableAsync<V>
- Parameters:
order
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public RFuture<Set<V>> readSortAlphaAsync(SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in interfaceRSortableAsync<V>
- Parameters:
order
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public RFuture<Set<V>> readSortAlphaAsync(String byPattern, SortOrder order)
Description copied from interface:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in interfaceRSortableAsync<V>
- Parameters:
byPattern
- that is used to generate the keys that are used for sortingorder
- for sorted data- Returns:
- sorted collection lexicographically
-
readSortAlphaAsync
public RFuture<Set<V>> readSortAlphaAsync(String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in 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:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in 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:RSortableAsync
Read data in sorted view lexicographically- Specified by:
readSortAlphaAsync
in 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
public int sortTo(String destName, SortOrder order)
Description copied from interface:RSortable
Sort data and store todestName
list
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, SortOrder order)
Description copied from interface:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in interfaceRSortableAsync<V>
- Parameters:
destName
- list object destinationorder
- for sorted data- Returns:
- length of sorted data
-
sortTo
public int sortTo(String destName, SortOrder order, int offset, int count)
Description copied from interface:RSortable
Sort data and store todestName
list
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in interfaceRSortableAsync<V>
- Parameters:
destName
- list object destinationorder
- for sorted dataoffset
- of sorted datacount
- of sorted data- Returns:
- length of sorted data
-
sortTo
public int sortTo(String destName, String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortable
Sort data and store todestName
list
-
sortTo
public int sortTo(String destName, String byPattern, SortOrder order)
Description copied from interface:RSortable
Sort data and store todestName
list
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, SortOrder order)
Description copied from interface:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in 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
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, SortOrder order, int offset, int count)
Description copied from interface:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in 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
public int sortTo(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Description copied from interface:RSortable
Sort data and store todestName
list
-
sortToAsync
public RFuture<Integer> sortToAsync(String destName, String byPattern, List<String> getPatterns, SortOrder order)
Description copied from interface:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in 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:RSortable
Sort data and store todestName
list- Specified by:
sortTo
in 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:RSortableAsync
Sort data and store todestName
list- Specified by:
sortToAsync
in 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
-
expire
public boolean expire(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirable
Set a timeout for object. After the timeout has expired, the key will automatically be deleted.- Specified by:
expire
in interfaceRExpirable
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAsync
public RFuture<Boolean> expireAsync(long timeToLive, TimeUnit timeUnit)
Description copied from interface:RExpirableAsync
Set a timeout for object in async mode. After the timeout has expired, the key will automatically be deleted.- Specified by:
expireAsync
in interfaceRExpirableAsync
- Parameters:
timeToLive
- - timeout before object will be deletedtimeUnit
- - timeout time unit- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(long timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(long timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date in milliseconds (Unix timestamp)- Returns:
true
if the timeout was set andfalse
if not
-
expireAt
public boolean expireAt(Date timestamp)
Description copied from interface:RExpirable
Set an expire date for object. When expire date comes the key will automatically be deleted.- Specified by:
expireAt
in interfaceRExpirable
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
expireAtAsync
public RFuture<Boolean> expireAtAsync(Date timestamp)
Description copied from interface:RExpirableAsync
Set an expire date for object in async mode. When expire date comes the key will automatically be deleted.- Specified by:
expireAtAsync
in interfaceRExpirableAsync
- Parameters:
timestamp
- - expire date- Returns:
true
if the timeout was set andfalse
if not
-
clearExpire
public boolean clearExpire()
Description copied from interface:RExpirable
Clear an expire timeout or expire date for object.- Specified by:
clearExpire
in interfaceRExpirable
- Returns:
true
if timeout was removedfalse
if object does not exist or does not have an associated timeout
-
clearExpireAsync
public RFuture<Boolean> clearExpireAsync()
Description copied from interface:RExpirableAsync
Clear an expire timeout or expire date for object in async mode. Object will not be deleted.- Specified by:
clearExpireAsync
in interfaceRExpirableAsync
- Returns:
true
if the timeout was cleared andfalse
if not
-
remainTimeToLive
public long remainTimeToLive()
Description copied from interface:RExpirable
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLive
in interfaceRExpirable
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
remainTimeToLiveAsync
public RFuture<Long> remainTimeToLiveAsync()
Description copied from interface:RExpirableAsync
Remaining time to live of Redisson object that has a timeout- Specified by:
remainTimeToLiveAsync
in interfaceRExpirableAsync
- Returns:
- time in milliseconds -2 if the key does not exist. -1 if the key exists but has no associated expire.
-
-