function CacheBackendDecorator::logCacheOperation
Same name in other branches
- 11.x core/modules/system/tests/modules/performance_test/src/Cache/CacheBackendDecorator.php \Drupal\performance_test\Cache\CacheBackendDecorator::logCacheOperation()
Logs a cache operation.
Parameters
string|array $cids: The cache IDs.
float $start: The start microtime.
float $stop: The stop microtime.
string $operation: The type of operation being logged.
Return value
void
10 calls to CacheBackendDecorator::logCacheOperation()
- CacheBackendDecorator::delete in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Deletes an item from the cache.
- CacheBackendDecorator::deleteAll in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Deletes all cache items in a bin.
- CacheBackendDecorator::deleteMultiple in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Deletes multiple items from the cache.
- CacheBackendDecorator::get in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Returns data from the persistent cache.
- CacheBackendDecorator::getMultiple in core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php - Returns data from the persistent cache when given an array of cache IDs.
File
-
core/
modules/ system/ tests/ modules/ performance_test/ src/ Cache/ CacheBackendDecorator.php, line 33
Class
- CacheBackendDecorator
- Wraps an existing cache backend to track calls to the cache backend.
Namespace
Drupal\performance_test\CacheCode
protected function logCacheOperation(string|array $cids, float $start, float $stop, string $operation) : void {
$this->performanceDataCollector
->addCacheOperation([
'operation' => $operation,
'cids' => implode(', ', (array) $cids),
'bin' => $this->bin,
'start' => $start,
'stop' => $stop,
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.