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