You are here

public function ChainedFastRawBackend::deleteAll in Supercache 2.0.x

Same name and namespace in other branches
  1. 8 src/Cache/ChainedFastRawBackend.php \Drupal\supercache\Cache\ChainedFastRawBackend::deleteAll()

Deletes all cache items in a bin.

Overrides CacheRawBackendInterface::deleteAll

See also

\Drupal\supercache\Cache\CacheRawBackendInterface::delete()

\Drupal\supercache\Cache\CacheRawBackendInterface::deleteMultiple()

File

src/Cache/ChainedFastRawBackend.php, line 216
Contains \Drupal\supercache\Cache\ChainedFastRawBackend.

Class

ChainedFastRawBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\supercache\Cache

Code

public function deleteAll() {
  $this->consistentBackend
    ->deleteAll();
  $this->fastBackend
    ->deleteAll();
  $this
    ->markAsOutdated();
}