public function DatabaseRawBackend::get in Supercache 8
Same name and namespace in other branches
- 2.0.x src/Cache/DatabaseRawBackend.php \Drupal\supercache\Cache\DatabaseRawBackend::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()
1 call to DatabaseRawBackend::get()
- DatabaseRawBackend::counterGet in src/
Cache/ DatabaseRawBackend.php - Get the value of a counter variable.
File
- src/
Cache/ DatabaseRawBackend.php, line 60 - Contains \Drupal\supercache\Cache\DatabaseRawBackend.
Class
- DatabaseRawBackend
- Defines a default cache implementation.
Namespace
Drupal\supercache\CacheCode
public function get($cid) {
$cids = array(
$cid,
);
$cache = $this
->getMultiple($cids);
return reset($cache);
}