Class ReactiveKeyCommands.ExpireCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveKeyCommands.ExpireCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveKeyCommands
EXPIRE
/PEXPIRE
command parameters.- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexpire
(ByteBuffer key, Expiration expiration) Applies the timeout.key
(ByteBuffer key) Creates a newReactiveKeyCommands.ExpireCommand
given akey
.Applies the timeout.withOptions
(ExpirationOptions options) 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
-
expire
- Parameters:
key
- must not be null.expiration
- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommand
forkey
andExpiration
. - Since:
- 3.5
-
key
Creates a newReactiveKeyCommands.ExpireCommand
given akey
.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommand
forkey
.
-
timeout
Applies the timeout. Constructs a new command instance with all previously configured properties.- Parameters:
timeout
- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommand
with timeout applied.
-
expire
Applies the timeout. Constructs a new command instance with all previously configured properties.- Parameters:
timeout
- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommand
with timeout applied. - Since:
- 3.5
-
getTimeout
- Returns:
- can be null.
-
withOptions
- Parameters:
options
- additional options to be sent along with the command.- Returns:
- new instance of
ReactiveKeyCommands.ExpireCommand
. - Since:
- 3.5
-
getExpiration
-
getOptions
-