public function refresh()
    {
        $this->removeCache();

        /** @var RefreshCacheEvent $event */
        $event = $this->eventDispatcher->dispatch('refresh_cache', RefreshCacheEvent::class);

        $this->writeCache($event->getParameters());
    }