class CacheInvalidator in Permissions by Term 8.2
Hierarchy
- class \Drupal\permissions_by_term\Cache\CacheInvalidator
Expanded class hierarchy of CacheInvalidator
1 string reference to 'CacheInvalidator'
1 service uses CacheInvalidator
File
- src/
Cache/ CacheInvalidator.php, line 7
Namespace
Drupal\permissions_by_term\CacheView source
class CacheInvalidator {
/**
* @var Cache
*/
private $cache;
public function __construct(Cache $cache) {
$this->cache = $cache;
}
public function invalidate() : void {
$this->cache::invalidateTags([
'search_index:node_search',
'permissions_by_term:access_result_cache',
'permissions_by_term:key_value_cache',
]);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CacheInvalidator:: |
private | property | ||
CacheInvalidator:: |
public | function | ||
CacheInvalidator:: |
public | function |