public function MemoryCounterBackend::get

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

Overrides MemoryBackend::get

File

drupal/core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 31
Contains \Drupal\Core\Cache\MemoryCounterBackend.

Class

MemoryCounterBackend
Defines a memory cache implementation that counts set and get calls.

Namespace

Drupal\Core\Cache

Code

public function get($cid, $allow_invalid = FALSE) {
  $this
    ->increaseCounter(__FUNCTION__, $cid);
  return parent::get($cid, $allow_invalid);
}