/** * @param $command * @param array $params * * @return array|bool|null|string */ public function executeCommand($command, $params = []) { if ($this->_connect instanceof PhpredisConnection) { if ($command == 'EVAL') { return $this->_connect->evaluate($params[0], [], 0); } if ($command == 'HMSET') { $key = array_shift($params); return $this->_connect->hMSet($key, $params); } } return $this->_connect->executeCommand($command, $params); }