public flushByTag ( string $tag ) : integer | ||
$tag | string | The tag the entries must have |
return | integer | The number of entries which have been affected by this flush |
public function flushByTag($tag)
{
$identifiers = $this->findIdentifiersByTag($tag);
foreach ($identifiers as $identifier) {
$this->remove($identifier);
}
return count($identifiers);
}