Drupal 8  8.0.2
CacheTagsInvalidatorInterface Interface Reference
Inheritance diagram for CacheTagsInvalidatorInterface:

Public Member Functions

 invalidateTags (array $tags)

Detailed Description

Defines required methods for classes wanting to handle cache tag changes.

Services that implement this interface must add the cache_tags_invalidator tag to be notified. Cache backends may implement this interface as well, they will be notified automatically.

Member Function Documentation

invalidateTags ( array  $tags)

Marks cache items with any of the specified tags as invalid.

string[]$tags The list of tags for which to invalidate cache items.

Implemented in ChainedFastBackend, BackendChain, MemoryBackend, DatabaseCacheTagsChecksum, and CacheTagsInvalidator.

The documentation for this interface was generated from the following file: