function CacheBackendDecorator::set
Same name in other branches
- 10 core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php \Drupal\performance_test\Cache\CacheBackendDecorator::set()
Overrides CacheBackendInterface::set
File
-
core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php, line 70
Class
- CacheBackendDecorator
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\performance_test\CacheCode
public function set($cid, $data, $expire = Cache::PERMANENT, array $tags = []) {
$start = microtime(TRUE);
$this->cacheBackend
->set($cid, $data, $expire, $tags);
$stop = microtime(TRUE);
$this->logCacheOperation($cid, $start, $stop, 'set');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.