function DrupalDatabaseCache::get

Implements DrupalCacheInterface::get().

Overrides DrupalCacheInterface::get

1 method overrides DrupalDatabaseCache::get()

File

drupal/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);
}