You are here

public function CacheItemBackend::delete in Flysystem 8

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

Deletes an item by the path.

Parameters

string $path: The path of the item to delete.

File

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

Class

CacheItemBackend
Storage backend for cache items.

Namespace

Drupal\flysystem\Flysystem\Adapter

Code

public function delete($path) {
  $this
    ->deleteMultiple([
    $path,
  ]);
}