function FileCacheBackendInterface::fetch

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

Fetches data from the cache backend.

Parameters

array $cids: The cache IDs to fetch.

Return value

array An array containing cache entries keyed by cache ID.

2 methods override FileCacheBackendInterface::fetch()
ApcuFileCacheBackend::fetch in core/lib/Drupal/Component/FileCache/ApcuFileCacheBackend.php
StaticFileCacheBackend::fetch in core/tests/Drupal/Tests/Component/FileCache/StaticFileCacheBackend.php

File

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

Class

FileCacheBackendInterface
Defines an interface inspired by APCu for FileCache backends.

Namespace

Drupal\Component\FileCache

Code

public function fetch(array $cids);

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