You are here

public function DrupalCacheAdapter::delete in Flysystem 8

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

File

src/Flysystem/Adapter/DrupalCacheAdapter.php, line 120

Class

DrupalCacheAdapter
A Flysystem adapter implementing caching with Drupal's Cache API.

Namespace

Drupal\flysystem\Flysystem\Adapter

Code

public function delete($path) {
  $result = $this->adapter
    ->delete($path);
  if ($result) {
    $this->cacheItemBackend
      ->delete($path);
  }
  return $result;
}