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 Details

    • CopyArgs

      public CopyArgs()
  • Method Details

    • 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<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.