public function MemoryBackend::get

Implements Drupal\Core\Cache\CacheBackendInterface::get().

Overrides CacheBackendInterface::get

1 call to MemoryBackend::get()
1 method overrides MemoryBackend::get()

File

drupal/core/lib/Drupal/Core/Cache/MemoryBackend.php, line 38
Definition of Drupal\Core\Cache\ArrayBackend.

Class

MemoryBackend
Defines a memory cache implementation.

Namespace

Drupal\Core\Cache

Code

public function get($cid, $allow_invalid = FALSE) {
  if (isset($this->cache[$cid])) {
    return $this
      ->prepareItem($this->cache[$cid], $allow_invalid);
  }
  else {
    return FALSE;
  }
}