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.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionexpire(ByteBuffer key, Expiration expiration) Applies the timeout.@Nullable Durationkey(ByteBuffer key) Creates a newReactiveKeyCommands.ExpireCommandgiven akey.Applies the timeout.withOptions(ExpirationOptions options) Methods inherited from class ReactiveRedisConnection.KeyCommand
getKeyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ReactiveRedisConnection.Command
getName
-
Method Details
-
expire
- Parameters:
key- must not be null.expiration- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommandforkeyandExpiration. - Since:
- 3.5
-
key
Creates a newReactiveKeyCommands.ExpireCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommandforkey.
-
timeout
Applies the timeout. Constructs a new command instance with all previously configured properties.- Parameters:
timeout- must not be null.- Returns:
- a new
ReactiveKeyCommands.ExpireCommandwith 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.ExpireCommandwith 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
-