3 namespace Drupal\Core\Cache;
6 * Defines required methods for classes wanting to handle cache tag changes.
8 * Services that implement this interface must add the cache_tags_invalidator
9 * tag to be notified. Cache backends may implement this interface as well, they
10 * will be notified automatically.
14 interface CacheTagsInvalidatorInterface {
17 * Marks cache items with any of the specified tags as invalid.
19 * @param string[] $tags
20 * The list of tags for which to invalidate cache items.
22 public function invalidateTags(array $tags);