You are here

public function StaticFileCacheBackend::delete in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::delete()

Deletes data from a cache backend.

Parameters

string $cid: The cache ID to delete.

Overrides FileCacheBackendInterface::delete

File

core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php, line 65
Contains \Drupal\Tests\Component\FileCache\StaticFileCacheBackend.

Class

StaticFileCacheBackend
Allows to cache data based on file modification dates in a static cache.

Namespace

Drupal\Tests\Component\FileCache

Code

public function delete($cid) {
  unset(static::$cache[$this->bin][$cid]);
}