Class ReactiveStringCommands.GetExCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveStringCommands.GetExCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveStringCommands
ReactiveRedisConnection.Command
for GETEX
.- Since:
- 2.6
- Author:
- Mark Paluch
-
Method Summary
Modifier and TypeMethodDescriptionGet theExpiration
to apply.key
(ByteBuffer key) Creates a newReactiveStringCommands.GetExCommand
given akey
.withExpiration
(Expiration expiration) AppliesExpiration
.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKey
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
key
Creates a newReactiveStringCommands.GetExCommand
given akey
.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveStringCommands.GetExCommand
forkey
.
-
withExpiration
AppliesExpiration
. Constructs a new command instance with all previously configured properties.- Parameters:
expiration
- must not be null.- Returns:
- a new
ReactiveStringCommands.GetExCommand
withExpiration
applied.
-
getExpiration
Get theExpiration
to apply.- Returns:
- never null.
-