Class ReactiveKeyCommands.MoveCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveKeyCommands.MoveCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveKeyCommands
MOVE command parameters.- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable Integerkey(ByteBuffer key) Creates a newReactiveKeyCommands.MoveCommandgiven akey.timeout(int database) Applies the database index.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
-
key
Creates a newReactiveKeyCommands.MoveCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveKeyCommands.MoveCommandforkey.
-
timeout
Applies the database index. Constructs a new command instance with all previously configured properties.- Parameters:
database-- Returns:
- a new
ReactiveKeyCommands.MoveCommandwith database applied.
-
getDatabase
- Returns:
- can be null.
-