function DrupalDatabaseCache::get

Implements DrupalCacheInterface::get().

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.