Class ReactiveKeyCommands.RenameCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveKeyCommands.RenameCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
ReactiveKeyCommands
RENAME command parameters.- Since:
- 2.0
- Author:
- Christoph Strobl
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@Nullable ByteBufferkey(ByteBuffer key) Creates a newReactiveKeyCommands.RenameCommandgiven akey.to(ByteBuffer newKey) Applies the newKey.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.RenameCommandgiven akey.- Parameters:
key- must not be null.- Returns:
- a new
ReactiveKeyCommands.RenameCommandforkey.
-
to
Applies the newKey. Constructs a new command instance with all previously configured properties.- Parameters:
newKey- must not be null.- Returns:
- a new
ReactiveKeyCommands.RenameCommandwith newKey applied.
-
getNewKey
- Returns:
- can be null.
- Since:
- 2.5.7
-