You are here

public function D8Cache::get in Drupal 8 Cache Backport 7

File

./d8cache.cache.inc, line 71

Class

D8Cache
Defines a Drupal 8 cacheable metadata aware cache backend.

Code

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