Error message

You are browsing documentation for drupal 7.x, which is not supported anymore. Read the updated version of this page for drupal 11.x (the latest version).

function DrupalDatabaseCache::get

Implements DrupalCacheInterface::get().

Parameters

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

Return value

The cache or FALSE on failure.

Overrides DrupalCacheInterface::get

1 method overrides DrupalDatabaseCache::get()
DrupalFakeCache::get in includes/cache-install.inc
Overrides DrupalDatabaseCache::get().

File

includes/cache.inc, line 338

Class

DrupalDatabaseCache
Defines a default cache implementation.

Code

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

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