public function CacheBase::invalidateAll in Redis 8
Marks all cache items as invalid.
Invalid items may be returned in later calls to get(), if the $allow_invalid argument is TRUE.
Overrides CacheBackendInterface::invalidateAll
See also
\Drupal\Core\Cache\CacheBackendInterface::deleteAll()
\Drupal\Core\Cache\CacheBackendInterface::invalidate()
\Drupal\Core\Cache\CacheBackendInterface::invalidateMultiple()
File
- src/
Cache/ CacheBase.php, line 408
Class
- CacheBase
- Base class for redis cache backends.
Namespace
Drupal\redis\CacheCode
public function invalidateAll() {
// To invalidate the whole bin, we invalidate a special tag for this bin.
$this->checksumProvider
->invalidateTags([
$this
->getTagForBin(),
]);
}