Package io.quarkus.redis.datasource.keys
Class CopyArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.keys.CopyArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class CopyArgs extends Object implements RedisCommandExtraArguments
Arguments for the Redis COPY command.
-
-
Constructor Summary
Constructors Constructor Description CopyArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CopyArgsdestinationDb(long destinationDb)Specify an alternative logical database index for the destination key.CopyArgsreplace(boolean replace)Hint redis to remove the destination key before copying the value to it.List<String>toArgs()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
destinationDb
public CopyArgs destinationDb(long destinationDb)
Specify an alternative logical database index for the destination key.- Parameters:
destinationDb- logical database index to apply for DB.- Returns:
- the current
CopyArgs.
-
replace
public CopyArgs replace(boolean replace)
Hint redis to remove the destination key before copying the value to it.- Parameters:
replace- remove destination key before copying the value REPLACE.- Returns:
this.
-
toArgs
public List<String> toArgs()
- Specified by:
toArgsin interfaceRedisCommandExtraArguments- Returns:
- the list of arguments, encoded as a list of String.
-
-