Class RedissonGeo<V>
- Type Parameters:
V- value
- All Implemented Interfaces:
Iterable<V>,RExpirable,RExpirableAsync,RGeo<V>,RGeoAsync<V>,RObject,RObjectAsync,RScoredSortedSet<V>,RScoredSortedSetAsync<V>,RSortable<Set<V>>,RSortableAsync<Set<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, name -
Constructor Summary
ConstructorsConstructorDescriptionRedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson) RedissonGeo(CommandAsyncExecutor connectionManager, String name, RedissonClient redisson) -
Method Summary
Modifier and TypeMethodDescriptionlongAdds geospatial member.longAdds geospatial members.Adds geospatial member.Adds geospatial members.addIfExists(double longitude, double latitude, V member) Adds geospatial member only if it's already exists.longaddIfExists(GeoEntry... entries) Adds geospatial members only if it's already exists.addIfExistsAsync(double longitude, double latitude, V member) Adds geospatial member only if it's already exists.addIfExistsAsync(GeoEntry... entries) Adds geospatial members only if it's already exists.booleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) Returns distance between members inGeoUnitunits.Returns distance between members inGeoUnitunits.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.Returns 11 characters long Geohash string mapped by defined member.Returns 11 characters Geohash string mapped by defined member.Returns geo-position mapped by defined member.Returns geo-position mapped by defined member.radius(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusAsync(V member, double radius, GeoUnit geoUnit) radiusAsync(V member, double radius, GeoUnit geoUnit, int count) radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) longradiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) longradiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit) longradiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count) longradiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit) radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) longradiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) longradiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit) longradiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, int count) longradiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit) radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistance(V member, double radius, GeoUnit geoUnit) radiusWithDistance(V member, double radius, GeoUnit geoUnit, int count) radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit) radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count) radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPosition(V member, double radius, GeoUnit geoUnit) radiusWithPosition(V member, double radius, GeoUnit geoUnit, int count) radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit) radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count) radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) longReturns remaining time of the object in milliseconds.Returns remaining time of the object in milliseconds.search(GeoSearchArgs args) Returns the members of a sorted set, which are within the borders of specified search conditions.searchAsync(GeoSearchArgs args) Returns the members of a sorted set, which are within the borders of specified search conditions.Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Returns the position mapped by member of a sorted set, which are within the borders of specified search conditions.longstoreSearchTo(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.storeSearchToAsync(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.longstoreSortedSearchTo(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.storeSortedSearchToAsync(String destName, GeoSearchArgs args) Finds the members of a sorted set, which are within the borders of specified search conditions.booleanAdds geospatial member only if has not been added before.longAdds geospatial members only if has not been added before.tryAddAsync(double longitude, double latitude, V member) Adds geospatial member only if has not been added before.tryAddAsync(GeoEntry... entries) Adds geospatial members only if has not been added before.Methods 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.lang.Iterable
forEach, iterator, spliteratorMethods 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.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.RScoredSortedSet
add, addAll, addAllIfAbsent, addAllIfExist, addAllIfGreater, addAllIfLess, addAndGetRank, addAndGetRevRank, addAndGetRevRank, addIfAbsent, addIfExists, addIfGreater, addIfLess, addListener, addScore, addScoreAndGetRank, addScoreAndGetRevRank, clear, contains, containsAll, count, countIntersection, countIntersection, diff, distributedIterator, distributedIterator, distributedIterator, entryIterator, entryIterator, entryIterator, entryIterator, entryRange, entryRange, entryRange, entryRangeReversed, entryRangeReversed, entryRangeReversed, first, firstEntry, firstScore, getScore, getScore, intersection, intersection, intersection, intersection, isEmpty, iterator, iterator, iterator, last, lastEntry, lastScore, mapReduce, pollFirst, pollFirst, pollFirst, pollFirst, pollFirstEntries, pollFirstEntries, pollFirstEntriesFromAny, pollFirstEntriesFromAny, pollFirstEntry, pollFirstFromAny, pollFirstFromAny, pollFirstFromAny, pollLast, pollLast, pollLast, pollLast, pollLastEntries, pollLastEntries, pollLastEntriesFromAny, pollLastEntriesFromAny, pollLastEntry, pollLastFromAny, pollLastFromAny, pollLastFromAny, random, random, randomEntries, rangeTo, rangeTo, rangeTo, rank, rankEntry, readAll, readDiff, readIntersection, readIntersection, readIntersection, readIntersection, readUnion, readUnion, readUnion, readUnion, remove, removeAll, removeRangeByRank, removeRangeByScore, replace, retainAll, revRangeTo, revRangeTo, revRangeTo, revRank, revRank, revRankEntry, size, stream, stream, stream, stream, subscribeOnFirstElements, subscribeOnFirstElements, subscribeOnLastElements, subscribeOnLastElements, takeFirst, takeLast, toArray, toArray, tryAdd, union, union, union, union, unsubscribe, valueRange, valueRange, valueRange, valueRangeReversed, valueRangeReversed, valueRangeReversedMethods inherited from interface org.redisson.api.RScoredSortedSetAsync
addAllAsync, addAllIfAbsentAsync, addAllIfExistAsync, addAllIfGreaterAsync, addAllIfLessAsync, addAndGetRankAsync, addAndGetRevRankAsync, addAndGetRevRankAsync, addAsync, addIfAbsentAsync, addIfExistsAsync, addIfGreaterAsync, addIfLessAsync, addListenerAsync, addScoreAndGetRankAsync, addScoreAndGetRevRankAsync, addScoreAsync, containsAllAsync, containsAsync, countAsync, countIntersectionAsync, countIntersectionAsync, diffAsync, entryRangeAsync, entryRangeAsync, entryRangeAsync, entryRangeReversedAsync, entryRangeReversedAsync, entryRangeReversedAsync, firstAsync, firstEntryAsync, firstScoreAsync, getScoreAsync, getScoreAsync, intersectionAsync, intersectionAsync, intersectionAsync, intersectionAsync, lastAsync, lastEntryAsync, lastScoreAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstAsync, pollFirstEntriesAsync, pollFirstEntriesAsync, pollFirstEntriesFromAnyAsync, pollFirstEntriesFromAnyAsync, pollFirstEntryAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollFirstFromAnyAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastAsync, pollLastEntriesAsync, pollLastEntriesAsync, pollLastEntriesFromAnyAsync, pollLastEntriesFromAnyAsync, pollLastEntryAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, pollLastFromAnyAsync, randomAsync, randomAsync, randomEntriesAsync, rangeToAsync, rangeToAsync, rangeToAsync, rankAsync, rankEntryAsync, readAllAsync, readDiffAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readIntersectionAsync, readUnionAsync, readUnionAsync, readUnionAsync, readUnionAsync, removeAllAsync, removeAsync, removeRangeByRankAsync, removeRangeByScoreAsync, replaceAsync, retainAllAsync, revRangeToAsync, revRangeToAsync, revRangeToAsync, revRankAsync, revRankAsync, revRankEntryAsync, sizeAsync, takeFirstAsync, takeLastAsync, tryAddAsync, unionAsync, unionAsync, unionAsync, unionAsync, valueRangeAsync, valueRangeAsync, valueRangeAsync, valueRangeReversedAsync, valueRangeReversedAsync, valueRangeReversedAsyncMethods inherited from interface org.redisson.api.RSortable
readSort, readSort, readSort, readSort, readSort, readSort, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, readSortAlpha, sortTo, sortTo, sortTo, sortTo, sortTo, sortToMethods inherited from interface org.redisson.api.RSortableAsync
readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAlphaAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, readSortAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync, sortToAsync
-
Constructor Details
-
RedissonGeo
-
RedissonGeo
public RedissonGeo(Codec codec, CommandAsyncExecutor connectionManager, String name, RedissonClient redisson)
-
-
Method Details
-
addAsync
Description copied from interface:RGeoAsyncAdds geospatial member. -
add
Description copied from interface:RGeoAdds geospatial member. -
add
Description copied from interface:RGeoAdds geospatial members. -
addAsync
Description copied from interface:RGeoAsyncAdds geospatial members. -
addIfExists
Description copied from interface:RGeoAdds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsin interfaceRGeo<V>- Parameters:
longitude- - longitude of objectlatitude- - latitude of objectmember- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExists
Description copied from interface:RGeoAdds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsin interfaceRGeo<V>- Parameters:
entries- - objects- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
Description copied from interface:RGeoAsyncAdds geospatial member only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsyncin interfaceRGeoAsync<V>- Parameters:
longitude- - longitude of objectlatitude- - latitude of objectmember- - object itself- Returns:
- number of elements added to the sorted set
-
addIfExistsAsync
Description copied from interface:RGeoAsyncAdds geospatial members only if it's already exists.Requires Redis 6.2.0 and higher.
- Specified by:
addIfExistsAsyncin interfaceRGeoAsync<V>- Parameters:
entries- - objects- Returns:
- number of elements added to the sorted set
-
tryAdd
Description copied from interface:RGeoAdds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAdd
Description copied from interface:RGeoAdds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
-
tryAddAsync
Description copied from interface:RGeoAsyncAdds geospatial member only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsyncin interfaceRGeoAsync<V>- Parameters:
longitude- - longitude of objectlatitude- - latitude of objectmember- - object itself- Returns:
- number of elements added to the sorted set
-
tryAddAsync
Description copied from interface:RGeoAsyncAdds geospatial members only if has not been added before.Requires Redis 6.2.0 and higher.
- Specified by:
tryAddAsyncin interfaceRGeoAsync<V>- Parameters:
entries- - objects- Returns:
- number of elements added to the sorted set
-
dist
Description copied from interface:RGeoReturns distance between members inGeoUnitunits. -
distAsync
Description copied from interface:RGeoAsyncReturns distance between members inGeoUnitunits. -
hash
Description copied from interface:RGeoReturns 11 characters long Geohash string mapped by defined member. -
hashAsync
Description copied from interface:RGeoAsyncReturns 11 characters Geohash string mapped by defined member. -
pos
Description copied from interface:RGeoReturns geo-position mapped by defined member. -
posAsync
Description copied from interface:RGeoAsyncReturns geo-position mapped by defined member. -
search
Description copied from interface:RGeoReturns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));List objects = geo.search(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
-
searchAsync
Description copied from interface:RGeoAsyncReturns the members of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));RFuture objects = geo.searchAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
- Specified by:
searchAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- list of memebers
-
searchWithDistance
Description copied from interface:RGeoReturns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));List objects = geo.searchWithDistance(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistancein interfaceRGeo<V>- Parameters:
args- - search conditions object- Returns:
- distance mapped by object
-
searchWithDistanceAsync
Description copied from interface:RGeoAsyncReturns the distance mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));RFuture objects = geo.searchWithDistanceAsync(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
- Specified by:
searchWithDistanceAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- distance mapped by object
-
searchWithPosition
Description copied from interface:RGeoReturns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPositionin interfaceRGeo<V>- Parameters:
args- - search conditions object- Returns:
- position mapped by object
-
searchWithPositionAsync
Description copied from interface:RGeoAsyncReturns the position mapped by member of a sorted set, which are within the borders of specified search conditions.Usage examples:
List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));List objects = geo.searchWithPosition(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));Requires Redis 3.2.10 and higher.
- Specified by:
searchWithPositionAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- position mapped by object
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
- Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radius
-
radiusAsync
public RFuture<List<V>> radiusAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
- Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
- Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithDistance
public Map<V,Double> radiusWithDistance(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistancein interfaceRGeo<V>
-
radiusWithDistanceAsync
public RFuture<Map<V,Double>> radiusWithDistanceAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithDistanceAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
- Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusWithPosition
public Map<V,GeoPosition> radiusWithPosition(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionin interfaceRGeo<V>
-
radiusWithPositionAsync
public RFuture<Map<V,GeoPosition>> radiusWithPositionAsync(V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusWithPositionAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
storeSearchTo
Description copied from interface:RGeoFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));- Specified by:
storeSearchToin interfaceRGeo<V>- Parameters:
args- - search conditions object- Returns:
- length of result
-
storeSearchToAsync
Description copied from interface:RGeoAsyncFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destName.Usage examples:
long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));long count = geo.storeSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));- Specified by:
storeSearchToAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- length of result
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
- Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
- Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
radiusStoreTo
public long radiusStoreTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToin interfaceRGeo<V>
-
radiusStoreToAsync
public RFuture<Long> radiusStoreToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreToAsyncin interfaceRGeoAsync<V>
-
storeSortedSearchTo
Description copied from interface:RGeoFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destNamesorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));- Specified by:
storeSortedSearchToin interfaceRGeo<V>- Parameters:
args- - search conditions object- Returns:
- length of result
-
storeSortedSearchToAsync
Description copied from interface:RGeoAsyncFinds the members of a sorted set, which are within the borders of specified search conditions.Stores result to
destNamesorted by distance.Usage examples:
long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS) .order(GeoOrder.ASC) .count(1)));long count = geo.storeSortedSearchTo(GeoSearchArgs.from(15, 37) .radius(200, GeoUnit.KILOMETERS)));- Specified by:
storeSortedSearchToAsyncin interfaceRGeoAsync<V>- Parameters:
args- - search conditions object- Returns:
- length of result
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedToAsync
public RFuture<Long> radiusStoreSortedToAsync(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToAsyncin interfaceRGeoAsync<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit) - Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, double longitude, double latitude, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
- Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, int count) - Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
radiusStoreSortedTo
public long radiusStoreSortedTo(String destName, V member, double radius, GeoUnit geoUnit, GeoOrder geoOrder, int count) - Specified by:
radiusStoreSortedToin interfaceRGeo<V>
-
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
-