Package org.redisson
Class RedissonVectorSet
java.lang.Object
org.redisson.RedissonObject
org.redisson.RedissonVectorSet
- All Implemented Interfaces:
RExpirable,RExpirableAsync,RObject,RObjectAsync,RVectorSet,RVectorSetAsync
- Author:
- Nikita Koksharov
-
Field Summary
Fields inherited from class org.redisson.RedissonObject
codec, commandExecutor, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(VectorAddArgs args) Adds an elementaddAsync(VectorAddArgs vargs) Adds an elementbooleanClear an expire timeout or expire date for object.Clear an expire timeout or expire date for object in async mode.clearExpireAsync(String... keys) intReturns the number of dimensions of vectorsReturns the number of dimensions of vectorsbooleanUseRExpirable.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.<T> TgetAttributes(String element, Class<T> clazz) Retrieves attributes associated with a given element name<T> RFuture<T> getAttributesAsync(String element, Class<T> clazz) Retrieves attributes associated with a given element namelongReturns 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.getInfo()Returns metadata for this vector setReturns metadata for this vector setgetNeighborEntries(String element) Retrieves the neighbors with scores of a specified element by namegetNeighborEntriesAsync(String element) Retrieves the neighbors with scores of a specified element by namegetNeighbors(String element) Retrieves the neighbors of a specified element by namegetNeighborsAsync(String element) Retrieves the neighbors of a specified element by namegetRawVector(String element) Retrieves raw internal representation of the approximate vector associated with a given element namegetRawVectorAsync(String element) Retrieves raw internal representation of the approximate vector associated with a given element namegetSimilar(VectorSimilarArgs args) Retrieves element names similar to a specified vector or elementgetSimilarAsync(VectorSimilarArgs vargs) Retrieves element names similar to a specified vector or elementRetrieves element names with scores similar to a given vector or elementRetrieves element names with scores similar to a given vector or elementRetrieves element names with scores and attributes similar to a given vector or elementRetrieves element names with scores and attributes similar to a given vector or elementRetrieves approximate vector associated with a given element namegetVectorAsync(String element) Retrieves approximate vector associated with a given element namerandom()Returns a random element namerandom(int count) Returns random element namesReturns a random element namerandomAsync(int count) Returns random element nameslongReturns remaining time of the object in milliseconds.Returns remaining time of the object in milliseconds.booleanRemoves an element by nameremoveAsync(String element) Removes an element by namebooleansetAttributes(String element, Object attributes) Sets attributes for an element by namesetAttributesAsync(String element, Object attributes) Sets attributes for an element by nameintsize()Returns the number of elementsReturns the number of elementsMethods inherited from class org.redisson.RedissonObject
addListener, addListener, addListener, addListenerAsync, addListenerAsync, 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, encode, encodeMapKey, encodeMapKey, encodeMapKeys, encodeMapValue, encodeMapValues, get, getAccessFrequency, getAccessFrequencyAsync, getCodec, getIdleTime, getIdleTimeAsync, getInternalEncoding, getInternalEncodingAsync, getListenerIdsByName, getLockByMapKey, getLockByValue, getName, getNameByListenerId, getRawName, getRawName, getReferenceCount, getReferenceCountAsync, getServiceManager, getSubscribeService, isExists, isExistsAsync, map, mapName, migrate, migrateAsync, move, moveAsync, prefixName, removeListener, removeListener, removeListenerAsync, 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 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
addListener, copy, copy, copy, copyAndReplace, copyAndReplace, delete, dump, getAccessFrequency, getCodec, getIdleTime, getInternalEncoding, getName, getReferenceCount, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkMethods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, deleteAsync, dumpAsync, getAccessFrequencyAsync, getIdleTimeAsync, getInternalEncodingAsync, getReferenceCountAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Constructor Details
-
RedissonVectorSet
-
-
Method Details
-
add
Description copied from interface:RVectorSetAdds an element- Specified by:
addin interfaceRVectorSet- Parameters:
args- add arguments- Returns:
trueif element was added andfalseif updated
-
addAsync
Description copied from interface:RVectorSetAsyncAdds an element- Specified by:
addAsyncin interfaceRVectorSetAsync- Parameters:
vargs- add arguments- Returns:
trueif element was added andfalseif updated
-
size
public int size()Description copied from interface:RVectorSetReturns the number of elements- Specified by:
sizein interfaceRVectorSet- Returns:
- number of elements
-
sizeAsync
Description copied from interface:RVectorSetAsyncReturns the number of elements- Specified by:
sizeAsyncin interfaceRVectorSetAsync- Returns:
- number of elements
-
dimensions
public int dimensions()Description copied from interface:RVectorSetReturns the number of dimensions of vectors- Specified by:
dimensionsin interfaceRVectorSet- Returns:
- dimensions count
-
dimensionsAsync
Description copied from interface:RVectorSetAsyncReturns the number of dimensions of vectors- Specified by:
dimensionsAsyncin interfaceRVectorSetAsync- Returns:
- dimensions count
-
getVector
Description copied from interface:RVectorSetRetrieves approximate vector associated with a given element name- Specified by:
getVectorin interfaceRVectorSet- Parameters:
element- element name- Returns:
- list of vector coordinates
-
getVectorAsync
Description copied from interface:RVectorSetAsyncRetrieves approximate vector associated with a given element name- Specified by:
getVectorAsyncin interfaceRVectorSetAsync- Parameters:
element- element name- Returns:
- list of vector coordinates
-
getRawVector
Description copied from interface:RVectorSetRetrieves raw internal representation of the approximate vector associated with a given element name- Specified by:
getRawVectorin interfaceRVectorSet- Parameters:
element- element name- Returns:
- list of raw vector values
-
getRawVectorAsync
Description copied from interface:RVectorSetAsyncRetrieves raw internal representation of the approximate vector associated with a given element name- Specified by:
getRawVectorAsyncin interfaceRVectorSetAsync- Parameters:
element- element name- Returns:
- list of raw vector values
-
getAttributes
Description copied from interface:RVectorSetRetrieves attributes associated with a given element name- Specified by:
getAttributesin interfaceRVectorSet- Parameters:
element- element nameclazz- type for deserialization- Returns:
- attributes
-
getAttributesAsync
Description copied from interface:RVectorSetAsyncRetrieves attributes associated with a given element name- Specified by:
getAttributesAsyncin interfaceRVectorSetAsync- Parameters:
element- element nameclazz- type for deserialization- Returns:
- attributes
-
getInfo
Description copied from interface:RVectorSetReturns metadata for this vector set- Specified by:
getInfoin interfaceRVectorSet- Returns:
- vector set information
-
getInfoAsync
Description copied from interface:RVectorSetAsyncReturns metadata for this vector set- Specified by:
getInfoAsyncin interfaceRVectorSetAsync- Returns:
- vector set information
-
getNeighbors
Description copied from interface:RVectorSetRetrieves the neighbors of a specified element by name- Specified by:
getNeighborsin interfaceRVectorSet- Parameters:
element- element name- Returns:
- list of neighbor element names
-
getNeighborsAsync
Description copied from interface:RVectorSetAsyncRetrieves the neighbors of a specified element by name- Specified by:
getNeighborsAsyncin interfaceRVectorSetAsync- Parameters:
element- element name- Returns:
- list of neighbor element names
-
getNeighborEntries
Description copied from interface:RVectorSetRetrieves the neighbors with scores of a specified element by name- Specified by:
getNeighborEntriesin interfaceRVectorSet- Parameters:
element- element name- Returns:
- list of neighbor elements with scores
-
getNeighborEntriesAsync
Description copied from interface:RVectorSetAsyncRetrieves the neighbors with scores of a specified element by name- Specified by:
getNeighborEntriesAsyncin interfaceRVectorSetAsync- Parameters:
element- element name- Returns:
- list of neighbor elements with scores
-
random
Description copied from interface:RVectorSetReturns a random element name- Specified by:
randomin interfaceRVectorSet- Returns:
- random element name
-
randomAsync
Description copied from interface:RVectorSetAsyncReturns a random element name- Specified by:
randomAsyncin interfaceRVectorSetAsync- Returns:
- random element name
-
random
Description copied from interface:RVectorSetReturns random element names- Specified by:
randomin interfaceRVectorSet- Parameters:
count- number of elements to return- Returns:
- list of random element names
-
randomAsync
Description copied from interface:RVectorSetAsyncReturns random element names- Specified by:
randomAsyncin interfaceRVectorSetAsync- Parameters:
count- number of elements to return- Returns:
- list of random element names
-
remove
Description copied from interface:RVectorSetRemoves an element by name- Specified by:
removein interfaceRVectorSet- Parameters:
element- element name to remove- Returns:
trueif element was removed,falseotherwise
-
removeAsync
Description copied from interface:RVectorSetAsyncRemoves an element by name- Specified by:
removeAsyncin interfaceRVectorSetAsync- Parameters:
element- element name to remove- Returns:
trueif element was removed,falseotherwise
-
setAttributes
Description copied from interface:RVectorSetSets attributes for an element by name- Specified by:
setAttributesin interfaceRVectorSet- Parameters:
element- element nameattributes- attributes- Returns:
trueif attributes were set,falseotherwise
-
setAttributesAsync
Description copied from interface:RVectorSetAsyncSets attributes for an element by name- Specified by:
setAttributesAsyncin interfaceRVectorSetAsync- Parameters:
element- element nameattributes- attributes- Returns:
trueif attributes were set,falseotherwise
-
getSimilar
Description copied from interface:RVectorSetRetrieves element names similar to a specified vector or element- Specified by:
getSimilarin interfaceRVectorSet- Parameters:
args- vector similarity arguments- Returns:
- list of similar element names
-
getSimilarAsync
Description copied from interface:RVectorSetAsyncRetrieves element names similar to a specified vector or element- Specified by:
getSimilarAsyncin interfaceRVectorSetAsync- Parameters:
vargs- vector similarity arguments- Returns:
- list of similar element names
-
getSimilarEntries
Description copied from interface:RVectorSetRetrieves element names with scores similar to a given vector or element- Specified by:
getSimilarEntriesin interfaceRVectorSet- Parameters:
args- similarity arguments- Returns:
- list of similar element names with scores
-
getSimilarEntriesAsync
Description copied from interface:RVectorSetAsyncRetrieves element names with scores similar to a given vector or element- Specified by:
getSimilarEntriesAsyncin interfaceRVectorSetAsync- Parameters:
vargs- similarity arguments- Returns:
- list of similar element names with scores
-
getSimilarEntriesWithAttributes
Description copied from interface:RVectorSetRetrieves element names with scores and attributes similar to a given vector or element- Specified by:
getSimilarEntriesWithAttributesin interfaceRVectorSet- Parameters:
args- similarity arguments- Returns:
- list of similar element names with scores and attributes
-
getSimilarEntriesWithAttributesAsync
public RFuture<List<ScoreAttributesEntry<String>>> getSimilarEntriesWithAttributesAsync(VectorSimilarArgs vargs) Description copied from interface:RVectorSetAsyncRetrieves element names with scores and attributes similar to a given vector or element- Specified by:
getSimilarEntriesWithAttributesAsyncin interfaceRVectorSetAsync- Parameters:
vargs- similarity arguments- Returns:
- list of similar element names with scores and attributes
-
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
-