Class RedisData
java.lang.Object
org.springframework.data.redis.core.convert.RedisData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddIndexedData(Collection<IndexedData> indexes) voidaddIndexedData(IndexedData index) @Nullable StringgetId()@Nullable String@Nullable LongGet the time before expiration in seconds.voidSet the id to be used as part of the key.voidsetKeyspace(@Nullable String keyspace) voidsetTimeToLive(Long timeToLive) Set the time before expiration inTimeUnit.SECONDS.voidsetTimeToLive(Long timeToLive, TimeUnit timeUnit) Set the time before expiration converting the given arguments toTimeUnit.SECONDS.voidsetTimeToLive(Duration timeToLive) Set the time before expiration converting the given arguments toTimeUnit.SECONDS.toString()
-
Constructor Details
-
RedisData
-
RedisData
-
RedisData
-
-
Method Details
-
setId
-
getId
- Returns:
-
getTimeToLive
Get the time before expiration in seconds.- Returns:
- null if not set.
-
addIndexedData
- Parameters:
index- must not be null.
-
addIndexedData
- Parameters:
indexes- must not be null.
-
getIndexedData
- Returns:
- never null.
-
getKeyspace
- Returns:
-
setKeyspace
- Parameters:
keyspace-
-
getBucket
- Returns:
-
setTimeToLive
Set the time before expiration inTimeUnit.SECONDS.- Parameters:
timeToLive- can be null.
-
setTimeToLive
Set the time before expiration converting the given arguments toTimeUnit.SECONDS.- Parameters:
timeToLive- must not be nulltimeUnit- must not be null
-
setTimeToLive
Set the time before expiration converting the given arguments toTimeUnit.SECONDS.- Parameters:
timeToLive- must not be null- Since:
- 4.1
-
toString
-