You are here

public static function StaticFileCacheBackend::reset in Zircon Profile 8.0

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

Allows tests to reset the static cache to avoid side effects.

File

core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php, line 72
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 static function reset() {
  static::$cache = [];
}