public function FilesystemCache::remove

Removes a value from the cache.

Parameters

string $key A unique key:

Overrides CacheInterface::remove

File

drupal/core/vendor/kriswallsmith/assetic/src/Assetic/Cache/FilesystemCache.php, line 57

Class

FilesystemCache
A simple filesystem cache.

Namespace

Assetic\Cache

Code

public function remove($key) {
  $path = $this->dir . '/' . $key;
  if (file_exists($path) && false === @unlink($path)) {
    throw new \RuntimeException('Unable to remove file ' . $path);
  }
}