From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/Cache/Logging/StatisticsCacheLogger.php | 174 --------------------- 1 file changed, 174 deletions(-) delete mode 100644 vendor/doctrine/orm/src/Cache/Logging/StatisticsCacheLogger.php (limited to 'vendor/doctrine/orm/src/Cache/Logging/StatisticsCacheLogger.php') diff --git a/vendor/doctrine/orm/src/Cache/Logging/StatisticsCacheLogger.php b/vendor/doctrine/orm/src/Cache/Logging/StatisticsCacheLogger.php deleted file mode 100644 index 092104e..0000000 --- a/vendor/doctrine/orm/src/Cache/Logging/StatisticsCacheLogger.php +++ /dev/null @@ -1,174 +0,0 @@ - */ - private array $cacheMissCountMap = []; - - /** @var array */ - private array $cacheHitCountMap = []; - - /** @var array */ - private array $cachePutCountMap = []; - - public function collectionCacheMiss(string $regionName, CollectionCacheKey $key): void - { - $this->cacheMissCountMap[$regionName] - = ($this->cacheMissCountMap[$regionName] ?? 0) + 1; - } - - public function collectionCacheHit(string $regionName, CollectionCacheKey $key): void - { - $this->cacheHitCountMap[$regionName] - = ($this->cacheHitCountMap[$regionName] ?? 0) + 1; - } - - public function collectionCachePut(string $regionName, CollectionCacheKey $key): void - { - $this->cachePutCountMap[$regionName] - = ($this->cachePutCountMap[$regionName] ?? 0) + 1; - } - - public function entityCacheMiss(string $regionName, EntityCacheKey $key): void - { - $this->cacheMissCountMap[$regionName] - = ($this->cacheMissCountMap[$regionName] ?? 0) + 1; - } - - public function entityCacheHit(string $regionName, EntityCacheKey $key): void - { - $this->cacheHitCountMap[$regionName] - = ($this->cacheHitCountMap[$regionName] ?? 0) + 1; - } - - public function entityCachePut(string $regionName, EntityCacheKey $key): void - { - $this->cachePutCountMap[$regionName] - = ($this->cachePutCountMap[$regionName] ?? 0) + 1; - } - - public function queryCacheHit(string $regionName, QueryCacheKey $key): void - { - $this->cacheHitCountMap[$regionName] - = ($this->cacheHitCountMap[$regionName] ?? 0) + 1; - } - - public function queryCacheMiss(string $regionName, QueryCacheKey $key): void - { - $this->cacheMissCountMap[$regionName] - = ($this->cacheMissCountMap[$regionName] ?? 0) + 1; - } - - public function queryCachePut(string $regionName, QueryCacheKey $key): void - { - $this->cachePutCountMap[$regionName] - = ($this->cachePutCountMap[$regionName] ?? 0) + 1; - } - - /** - * Get the number of entries successfully retrieved from cache. - * - * @param string $regionName The name of the cache region. - */ - public function getRegionHitCount(string $regionName): int - { - return $this->cacheHitCountMap[$regionName] ?? 0; - } - - /** - * Get the number of cached entries *not* found in cache. - * - * @param string $regionName The name of the cache region. - */ - public function getRegionMissCount(string $regionName): int - { - return $this->cacheMissCountMap[$regionName] ?? 0; - } - - /** - * Get the number of cacheable entries put in cache. - * - * @param string $regionName The name of the cache region. - */ - public function getRegionPutCount(string $regionName): int - { - return $this->cachePutCountMap[$regionName] ?? 0; - } - - /** @return array */ - public function getRegionsMiss(): array - { - return $this->cacheMissCountMap; - } - - /** @return array */ - public function getRegionsHit(): array - { - return $this->cacheHitCountMap; - } - - /** @return array */ - public function getRegionsPut(): array - { - return $this->cachePutCountMap; - } - - /** - * Clear region statistics - * - * @param string $regionName The name of the cache region. - */ - public function clearRegionStats(string $regionName): void - { - $this->cachePutCountMap[$regionName] = 0; - $this->cacheHitCountMap[$regionName] = 0; - $this->cacheMissCountMap[$regionName] = 0; - } - - /** - * Clear all statistics - */ - public function clearStats(): void - { - $this->cachePutCountMap = []; - $this->cacheHitCountMap = []; - $this->cacheMissCountMap = []; - } - - /** - * Get the total number of put in cache. - */ - public function getPutCount(): int - { - return array_sum($this->cachePutCountMap); - } - - /** - * Get the total number of entries successfully retrieved from cache. - */ - public function getHitCount(): int - { - return array_sum($this->cacheHitCountMap); - } - - /** - * Get the total number of cached entries *not* found in cache. - */ - public function getMissCount(): int - { - return array_sum($this->cacheMissCountMap); - } -} -- cgit v1.2.3