public function ChainedFastRawBackend::get in Supercache 2.0.x
Same name and namespace in other branches
- 8 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\CacheCode
public function get($cid) {
$cids = array(
$cid,
);
$cache = $this
->getMultiple($cids);
return reset($cache);
}