src/Predis.php
protected function execCommand(string $cmd, ...$args)
    {
        $command = $this->predis->createCommand($cmd, $args);
        $response = $this->predis->executeCommand($command);

        if ($response instanceof ErrorInterface) {
            return false;
        }

        if ($response instanceof Status) {
            return $response->getPayload() === 'OK';
        }

        return $response;
    }
protected function execCommand(string $cmd, ...$args)
    {
        $command = $this->predis->createCommand($cmd, $args);
        $response = $this->predis->executeCommand($command);

        if ($response instanceof ErrorInterface) {
            return false;
        }

        if ($response instanceof Status) {
            return $response->getPayload() === 'OK';
        }

        return $response;
    }
protected function execCommand ( string $ cmd , ... $ args ) { $ command = $ this -> predis -> createCommand ( $ cmd , $ args ) ; $ response = $ this -> predis -> executeCommand ( $ command ) ; if ( $ response instanceof ErrorInterface ) { return false ; } if ( $ response instanceof Status ) { return $ response -> getPayload ( ) === 'OK' ; } return $ response ; }
Run a predis command.

@param string $cmd
@param mixed
@return mixed|bool
Run a predis command .