public function StaticFileCacheBackend::store in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php \Drupal\Tests\Component\FileCache\StaticFileCacheBackend::store()
Stores data into a cache backend.
Parameters
string $cid: The cache ID to store data to.
mixed $data: The data to store.
Overrides FileCacheBackendInterface::store
File
- core/
tests/ Drupal/ Tests/ Component/ FileCache/ StaticFileCacheBackend.php, line 58 - 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\FileCacheCode
public function store($cid, $data) {
static::$cache[$this->bin][$cid] = $data;
}