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 theExpirationto apply.key(ByteBuffer key) Creates a newReactiveStringCommands.GetExCommandgiven akey.withExpiration(Expiration expiration) AppliesExpiration.Methods inherited from class org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.redis.connection.ReactiveRedisConnection.Command
getName
-
Method Details
-
key
Creates a newReactiveStringCommands.GetExCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveStringCommands.GetExCommandforkey.
-
withExpiration
AppliesExpiration. Constructs a new command instance with all previously configured properties.- Parameters:
expiration- must not be null.- Returns:
- a new
ReactiveStringCommands.GetExCommandwithExpirationapplied.
-
getExpiration
Get theExpirationto apply.- Returns:
- never null.
-