public function setUseHasCache($useHasCache = true, $hasCacheLength = null)
    {
        $this->useHasCache = (bool)$useHasCache;

        if ($hasCacheLength !== null) {
            $this->hasCacheLength = (int)$hasCacheLength;
        }

        return $this;
    }