Uses of Class
org.springframework.data.redis.core.types.Expiration
Package
Description
Connection package providing low-level abstractions for interacting with the various Redis 'drivers'/libraries.
Connection package for Lettuce Redis client.
Redis domain specific types.
-
Uses of Expiration in org.springframework.data.redis.connection
Modifier and TypeMethodDescriptionReactiveStringCommands.GetExCommand.getExpiration()
Get theExpiration
to apply.Modifier and TypeMethodDescriptionReactiveStringCommands.SetCommand.expiring
(Expiration expiration) AppliesExpiration
.default byte[]
DefaultedRedisConnection.getEx
(byte[] key, Expiration expiration) Deprecated.byte[]
DefaultStringRedisConnection.getEx
(byte[] key, Expiration expiration) DefaultStringRedisConnection.getEx
(String key, Expiration expiration) default reactor.core.publisher.Mono<ByteBuffer>
ReactiveStringCommands.getEx
(ByteBuffer key, Expiration expiration) Return the value atkey
and expire the key by applyingExpiration
.byte[]
RedisStringCommands.getEx
(byte[] key, Expiration expiration) Return the value atkey
and expire the key by applyingExpiration
.StringRedisConnection.getEx
(String key, Expiration expiration) Return the value atkey
and expire the key by applyingExpiration
.default reactor.core.publisher.Mono<Boolean>
ReactiveStringCommands.pSetEX
(ByteBuffer key, ByteBuffer value, Expiration expireTimeout) Set key value pair andExpiration
.default Boolean
DefaultedRedisConnection.set
(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Deprecated.in favor ofRedisCommandsProvider.stringCommands()
}.DefaultStringRedisConnection.set
(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) DefaultStringRedisConnection.set
(String key, String value, Expiration expiration, RedisStringCommands.SetOption option) default reactor.core.publisher.Mono<Boolean>
ReactiveStringCommands.set
(ByteBuffer key, ByteBuffer value, Expiration expiration, RedisStringCommands.SetOption option) Set value for key with expiration and options.RedisStringCommands.set
(byte[] key, byte[] value, Expiration expiration, RedisStringCommands.SetOption option) Setvalue
forkey
applying timeouts fromexpiration
if set and inserting/updating values depending onoption
.StringRedisConnection.set
(String key, String value, Expiration expiration, RedisStringCommands.SetOption option) Setvalue
forkey
applying timeouts fromexpiration
if set and inserting/updating values depending onoption
.default reactor.core.publisher.Mono<Boolean>
ReactiveStringCommands.setEX
(ByteBuffer key, ByteBuffer value, Expiration expireTimeout) Set key value pair andExpiration
.ReactiveStringCommands.GetExCommand.withExpiration
(Expiration expiration) AppliesExpiration
. -
Uses of Expiration in org.springframework.data.redis.connection.lettuce
Modifier and TypeMethodDescriptionstatic io.lettuce.core.SetArgs
LettuceConverters.toSetArgs
(Expiration expiration, RedisStringCommands.SetOption option) -
Uses of Expiration in org.springframework.data.redis.core.types
Modifier and TypeMethodDescriptionstatic Expiration
Creates newExpiration
with the providedTimeUnit
.static Expiration
Creates a newExpiration
with the given, requiredDuration
.static Expiration
Expiration.keepTtl()
Obtain anExpiration
that indicates to keep the existing one, e.g. when sending aSET
command.static Expiration
Expiration.milliseconds
(long expirationTime) Creates a newExpiration
inTimeUnit.MILLISECONDS
.static Expiration
Expiration.persistent()
Creates a new persistent, non-expiringExpiration
.static Expiration
Expiration.seconds
(long expirationTime) Creates a newExpiration
inTimeUnit.SECONDS
.static Expiration
Expiration.unixTimestamp
(long unixTimestamp, TimeUnit timeUnit) Creates a newExpiration
with the given unix timestamp andTimeUnit
.
RedisCommandsProvider.stringCommands()
}.