function CacheBackendDecorator::get
Same name in other branches
- 11.x core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php \Drupal\performance_test\Cache\CacheBackendDecorator::get()
Overrides CacheBackendInterface::get
File
-
core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php, line 46
Class
- CacheBackendDecorator
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\performance_test\CacheCode
public function get($cid, $allow_invalid = FALSE) : object|bool {
$start = microtime(TRUE);
$cache = $this->cacheBackend
->get($cid, $allow_invalid);
$stop = microtime(TRUE);
$this->logCacheOperation($cid, $start, $stop, 'get');
return $cache;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.