src/LuaScript.php
private function reload(): void
    {
        $this->sha = (string) @sha1_file($this->corePath);

        if (empty($this->sha)) {
            throw new RuntimeException(
                'Unable to locate qless-core file at path: ' . $this->corePath
            );
        }

        $res = $this->redis->script('exists', $this->sha);

        if ($res[0] !== 1) {
            $this->sha = $this->redis->script('load', file_get_contents($this->corePath));
        }
    }
private function reload(): void
    {
        $this->sha = (string) @sha1_file($this->corePath);

        if (empty($this->sha)) {
            throw new RuntimeException(
                'Unable to locate qless-core file at path: ' . $this->corePath
            );
        }

        $res = $this->redis->script('exists', $this->sha);

        if ($res[0] !== 1) {
            $this->sha = $this->redis->script('load', file_get_contents($this->corePath));
        }
    }
Reloads the qless-core code.

@return void

@throws RuntimeException