summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/QueryCacheKey.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/QueryCacheKey.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/QueryCacheKey.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/QueryCacheKey.php b/vendor/doctrine/orm/src/Cache/QueryCacheKey.php
new file mode 100644
index 0000000..2372e5a
--- /dev/null
+++ b/vendor/doctrine/orm/src/Cache/QueryCacheKey.php
@@ -0,0 +1,23 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache;
6
7use Doctrine\ORM\Cache;
8
9/**
10 * A cache key that identifies a particular query.
11 */
12class QueryCacheKey extends CacheKey
13{
14 /** @param Cache::MODE_* $cacheMode */
15 public function __construct(
16 string $cacheId,
17 public readonly int $lifetime = 0,
18 public readonly int $cacheMode = Cache::MODE_NORMAL,
19 public readonly TimestampCacheKey|null $timestampKey = null,
20 ) {
21 parent::__construct($cacheId);
22 }
23}