public function MemoryCounterBackend::set

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

Overrides MemoryBackend::set

File

drupal/core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 39
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 set($cid, $data, $expire = CacheBackendInterface::CACHE_PERMANENT, array $tags = array()) {
  $this
    ->increaseCounter(__FUNCTION__, $cid);
  parent::set($cid, $data, $expire, $tags);
}