public function clearAction()
    {
        $tags = $this->params('tags', null);
        if (null === $tags) {
            $this->console->writeLine('You should provide tags');
            return;
        }

        $tags   = explode(',', $tags);
        $result = false;
        try {
            $result = $this->getCacheService()->clearByTags($tags);
        } catch (UnsupportedAdapterException $exception) {
            $this->console->writeLine($exception->getMessage());
        }

        $this->console->writeLine(
            sprintf(
                'Cache invalidation %s',
                $result ? 'succeeded' : 'failed'
            )
        );
    }