You are here

public function CacheItemBackend::deleteMultiple in Flysystem 8

Same name and namespace in other branches
  1. 3.x src/Flysystem/Adapter/CacheItemBackend.php \Drupal\flysystem\Flysystem\Adapter\CacheItemBackend::deleteMultiple()
  2. 2.0.x src/Flysystem/Adapter/CacheItemBackend.php \Drupal\flysystem\Flysystem\Adapter\CacheItemBackend::deleteMultiple()
  3. 3.0.x src/Flysystem/Adapter/CacheItemBackend.php \Drupal\flysystem\Flysystem\Adapter\CacheItemBackend::deleteMultiple()

Deletes multiple paths.

Parameters

array $paths: The array of paths to delete.

1 call to CacheItemBackend::deleteMultiple()
CacheItemBackend::delete in src/Flysystem/Adapter/CacheItemBackend.php
Deletes an item by the path.

File

src/Flysystem/Adapter/CacheItemBackend.php, line 106

Class

CacheItemBackend
Storage backend for cache items.

Namespace

Drupal\flysystem\Flysystem\Adapter

Code

public function deleteMultiple(array $paths) {
  $keys = [];
  foreach ($paths as $path) {
    $keys[] = $this
      ->getCacheKey($path);
  }
  $this->cacheBackend
    ->deleteMultiple($keys);
}