You are here

function DrupalDatabaseCache::get in Drupal 7

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
Functions and interfaces for cache handling.

Class

DrupalDatabaseCache
Defines a default cache implementation.

Code

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