protected function MemoryCounterBackend::increaseCounter
protected MemoryCounterBackend::increaseCounter($function, $cid)
Increase the counter for a function with a certain cid.
Parameters
string $function: The called function.
string $cid: The cache ID of the cache entry to increase the counter.
File
- core/lib/Drupal/Core/Cache/MemoryCounterBackend.php, line 54
Class
- MemoryCounterBackend
- Defines a memory cache implementation that counts set and get calls.
Namespace
Drupal\Core\CacheCode
protected function increaseCounter($function, $cid) { if (!isset($this->counter[$function][$cid])) { $this->counter[$function][$cid] = 1; } else { $this->counter[$function][$cid]++; } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!MemoryCounterBackend.php/function/MemoryCounterBackend::increaseCounter/8.1.x