diff --git a/Classes/RedisBackend.php b/Classes/RedisBackend.php index e1e6de8..5cb546d 100644 --- a/Classes/RedisBackend.php +++ b/Classes/RedisBackend.php @@ -267,6 +267,19 @@ public function flushByTag(string $tag): int return $this->client->eval($script, 2, $this->buildKey('tag:' . $tag), $this->buildKey('entries'), $this->buildKey('')); } + /** + * Unoptimized implementation for flushing multiple tags + * + * @param array $tags + * @return int + */ + public function flushByTags(array $tags): int + { + foreach ($tags as $tag) { + $this->flushByTag($tag); + } + } + /** * Finds and returns all cache entry identifiers which are tagged by the * specified tag.