public function clear() { if (!$this->hasNamespace()) { $this->doctrineCache->flushAll(); } else { $this->withNamespace()->deleteAll(); } }