/** * Removes all cache entries of this cache which are tagged by the specified tag. * * @param string $tag The tag the entries must have * @return void * @throws \InvalidArgumentException * @api */ public function flushByTag($tag) { if (!$this->isValidTag($tag)) { throw new \InvalidArgumentException('"' . $tag . '" is not a valid tag for a cache entry.', 1233057359); } if ($this->backend instanceof TaggableBackendInterface) { $this->backend->flushByTag($tag); } }