12345678910111213141516171819202122232425262728 |
- <?php
- namespace EasySwoole\Redis\CommandHandle;
- use EasySwoole\Redis\CommandConst;
- use EasySwoole\Redis\Redis;
- use EasySwoole\Redis\Response;
- class Dump extends AbstractCommandHandle
- {
- public $commandName = 'Dump';
- public function handelCommandData(...$data)
- {
- $key=array_shift($data);
- $this->setClusterExecClientByKey($key);
- $command = [CommandConst::DUMP,$key];
- $commandData = array_merge($command,$data);
- return $commandData;
- }
- public function handelRecv(Response $recv)
- {
- return $recv->getData();
- }
- }
|