blob: 64c97c1b0d10e5e3bb1f23898359c93509f8e301 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Cache\Logging;
use Doctrine\ORM\Cache\CollectionCacheKey;
use Doctrine\ORM\Cache\EntityCacheKey;
use Doctrine\ORM\Cache\QueryCacheKey;
/**
* Interface for logging.
*/
interface CacheLogger
{
/**
* Log an entity put into second level cache.
*/
public function entityCachePut(string $regionName, EntityCacheKey $key): void;
/**
* Log an entity get from second level cache resulted in a hit.
*/
public function entityCacheHit(string $regionName, EntityCacheKey $key): void;
/**
* Log an entity get from second level cache resulted in a miss.
*/
public function entityCacheMiss(string $regionName, EntityCacheKey $key): void;
/**
* Log an entity put into second level cache.
*/
public function collectionCachePut(string $regionName, CollectionCacheKey $key): void;
/**
* Log an entity get from second level cache resulted in a hit.
*/
public function collectionCacheHit(string $regionName, CollectionCacheKey $key): void;
/**
* Log an entity get from second level cache resulted in a miss.
*/
public function collectionCacheMiss(string $regionName, CollectionCacheKey $key): void;
/**
* Log a query put into the query cache.
*/
public function queryCachePut(string $regionName, QueryCacheKey $key): void;
/**
* Log a query get from the query cache resulted in a hit.
*/
public function queryCacheHit(string $regionName, QueryCacheKey $key): void;
/**
* Log a query get from the query cache resulted in a miss.
*/
public function queryCacheMiss(string $regionName, QueryCacheKey $key): void;
}
|