function StaticFileCacheBackend::store

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::store()
  2. 8.9.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::store()
  3. 11.x core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::store()

Overrides FileCacheBackendInterface::store

File

core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php, line 55

Class

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

Namespace

Drupal\Tests\Component\FileCache

Code

public function store($cid, $data) {
    static::$cache[$this->bin][$cid] = $data;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.