Dump.php 543 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace EasySwoole\Redis\CommandHandle;
  3. use EasySwoole\Redis\CommandConst;
  4. use EasySwoole\Redis\Redis;
  5. use EasySwoole\Redis\Response;
  6. class Dump extends AbstractCommandHandle
  7. {
  8. public $commandName = 'Dump';
  9. public function handelCommandData(...$data)
  10. {
  11. $key=array_shift($data);
  12. $this->setClusterExecClientByKey($key);
  13. $command = [CommandConst::DUMP,$key];
  14. $commandData = array_merge($command,$data);
  15. return $commandData;
  16. }
  17. public function handelRecv(Response $recv)
  18. {
  19. return $recv->getData();
  20. }
  21. }