protected function crc(string $value, bool $cache = false) : string
    {
        $hash = hash('crc32', $value);

        if ($cache && !isset($this->crcCache[$hash])) {
            $this->crcCache[$hash] = $value;
        }

        return $hash;
    }
protected function crc(string $value, bool $cache = false) : string
    {
        $hash = hash('crc32', $value);

        if ($cache && !isset($this->crcCache[$hash])) {
            $this->crcCache[$hash] = $value;
        }

        return $hash;
    }
protected function crc ( string $ value , bool $ cache = false ) : string { $ hash = hash ( 'crc32' , $ value ) ; if ( $ cache && ! isset ( $ this -> crcCache [ $ hash ] ) ) { $ this -> crcCache [ $ hash ] = $ value ; } return $ hash ; }
CRC a string

@param string $value
@param bool   $cache
@return string
CRC a string