src/LuaScript.php
public function run(string $command, array $args)
    {
        if (empty($this->sha)) {
            $this->reload();
        }

        $arguments = $this->normalizeCommandArgs($command, $args);

        try {
            return call_user_func_array([$this->redis, 'evalsha'], $arguments);

        } catch (\Exception $exception) {
            throw ExceptionFactory::fromErrorMessage($exception->getMessage());
        }
    }
public function run(string $command, array $args)
    {
        if (empty($this->sha)) {
            $this->reload();
        }

        $arguments = $this->normalizeCommandArgs($command, $args);

        try {
            return call_user_func_array([$this->redis, 'evalsha'], $arguments);

        } catch (\Exception $exception) {
            throw ExceptionFactory::fromErrorMessage($exception->getMessage());
        }
    }
Run a Lua command serverside.

@param  string $command
@param  array  $args
@return mixed|null

@throws RuntimeException
@throws QlessException