function FileCacheBackendInterface::store

Same name in other branches
  1. 9 core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php \Drupal\Component\FileCache\FileCacheBackendInterface::store()
  2. 10 core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php \Drupal\Component\FileCache\FileCacheBackendInterface::store()
  3. 11.x core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php \Drupal\Component\FileCache\FileCacheBackendInterface::store()

Stores data into a cache backend.

Parameters

string $cid: The cache ID to store data to.

mixed $data: The data to store.

2 methods override FileCacheBackendInterface::store()
ApcuFileCacheBackend::store in core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php
Stores data into a cache backend.
StaticFileCacheBackend::store in core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php
Stores data into a cache backend.

File

core/lib/Drupal/Component/FileCache/FileCacheBackendInterface.php, line 29

Class

FileCacheBackendInterface
Defines an interface inspired by APCu for FileCache backends.

Namespace

Drupal\Component\FileCache

Code

public function store($cid, $data);

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