Predis\Command\ScriptCommand::getScriptHash PHP Method

getScriptHash() public method

Calculates the SHA1 hash of the body of the script.
public getScriptHash ( ) : string
return string SHA1 hash.
    public function getScriptHash()
    {
        return sha1($this->getScript());
    }