public function flushByTag($tag) { $identifiers = $this->findIdentifiersByTag($tag); foreach ($identifiers as $identifier) { $this->remove($identifier); } return count($identifiers); }