Class ReactiveKeyCommands.CopyCommand
java.lang.Object
org.springframework.data.redis.connection.ReactiveRedisConnection.KeyCommand
org.springframework.data.redis.connection.ReactiveKeyCommands.CopyCommand
- All Implemented Interfaces:
ReactiveRedisConnection.Command
- Enclosing interface:
- ReactiveKeyCommands
MOVE
command parameters.- Author:
- Mark Paluch
- See Also:
-
Constructor Summary
ConstructorDescriptionCopyCommand
(ByteBuffer key, ByteBuffer target, boolean replace, Integer database) -
Method Summary
Modifier and TypeMethodDescriptiondatabase
(int database) Applies the database index.boolean
key
(ByteBuffer key) Creates a newReactiveKeyCommands.CopyCommand
given akey
.replace
(boolean replace) Appliesreplace
.to
(ByteBuffer targetKey) Applies thetargetKey
.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
-
Constructor Details
-
CopyCommand
public CopyCommand(ByteBuffer key, @Nullable ByteBuffer target, boolean replace, @Nullable Integer database)
-
-
Method Details
-
key
Creates a newReactiveKeyCommands.CopyCommand
given akey
.- Parameters:
key
- must not be null.- Returns:
- a new
ReactiveKeyCommands.CopyCommand
forkey
.
-
to
Applies thetargetKey
. Constructs a new command instance with all previously configured properties.- Parameters:
targetKey
- must not be null.- Returns:
- a new
ReactiveKeyCommands.CopyCommand
with database applied.
-
replace
Appliesreplace
. Constructs a new command instance with all previously configured properties.- Parameters:
replace
-- Returns:
- a new
ReactiveKeyCommands.CopyCommand
with replace applied.
-
database
Applies the database index. Constructs a new command instance with all previously configured properties.- Parameters:
database
-- Returns:
- a new
ReactiveKeyCommands.CopyCommand
with database applied.
-
getTarget
- Returns:
- can be null.
-
isReplace
public boolean isReplace() -
getDatabase
- Returns:
- can be null.
-