You are here

public function ChainedFastRawBackend::get in Supercache 8

Same name and namespace in other branches
  1. 2.0.x src/Cache/ChainedFastRawBackend.php \Drupal\supercache\Cache\ChainedFastRawBackend::get()

Returns data from the persistent cache.

Parameters

string $cid: The cache ID of the data to retrieve.

Return value

object|false The cache item or FALSE on failure.

Overrides CacheRawBackendInterface::get

See also

\Drupal\Core\Cache\CacheRawBackendInterface::getMultiple()

File

src/Cache/ChainedFastRawBackend.php, line 120
Contains \Drupal\supercache\Cache\ChainedFastRawBackend.

Class

ChainedFastRawBackend
Defines a backend with a fast and a consistent backend chain.

Namespace

Drupal\supercache\Cache

Code

public function get($cid) {
  $cids = array(
    $cid,
  );
  $cache = $this
    ->getMultiple($cids);
  return reset($cache);
}