summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php b/vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php
new file mode 100644
index 0000000..64c97c1
--- /dev/null
+++ b/vendor/doctrine/orm/src/Cache/Logging/CacheLogger.php
@@ -0,0 +1,60 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache\Logging;
6
7use Doctrine\ORM\Cache\CollectionCacheKey;
8use Doctrine\ORM\Cache\EntityCacheKey;
9use Doctrine\ORM\Cache\QueryCacheKey;
10
11/**
12 * Interface for logging.
13 */
14interface CacheLogger
15{
16 /**
17 * Log an entity put into second level cache.
18 */
19 public function entityCachePut(string $regionName, EntityCacheKey $key): void;
20
21 /**
22 * Log an entity get from second level cache resulted in a hit.
23 */
24 public function entityCacheHit(string $regionName, EntityCacheKey $key): void;
25
26 /**
27 * Log an entity get from second level cache resulted in a miss.
28 */
29 public function entityCacheMiss(string $regionName, EntityCacheKey $key): void;
30
31 /**
32 * Log an entity put into second level cache.
33 */
34 public function collectionCachePut(string $regionName, CollectionCacheKey $key): void;
35
36 /**
37 * Log an entity get from second level cache resulted in a hit.
38 */
39 public function collectionCacheHit(string $regionName, CollectionCacheKey $key): void;
40
41 /**
42 * Log an entity get from second level cache resulted in a miss.
43 */
44 public function collectionCacheMiss(string $regionName, CollectionCacheKey $key): void;
45
46 /**
47 * Log a query put into the query cache.
48 */
49 public function queryCachePut(string $regionName, QueryCacheKey $key): void;
50
51 /**
52 * Log a query get from the query cache resulted in a hit.
53 */
54 public function queryCacheHit(string $regionName, QueryCacheKey $key): void;
55
56 /**
57 * Log a query get from the query cache resulted in a miss.
58 */
59 public function queryCacheMiss(string $regionName, QueryCacheKey $key): void;
60}