summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Cache/ConcurrentRegion.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2026-10-18 00:08:23 +0200
committerpolo <ordipolo@gmx.fr>2026-10-18 00:10:03 +0200
commit05e38eadbeb3de19e5b26003c2b401e00bb71df4 (patch)
treecf48350b69cfce92de6f3a0e03eb0876931c7077 /vendor/doctrine/orm/src/Cache/ConcurrentRegion.php
parent32843e50aa981f190bdb4fbc9adbeacc06fdf775 (diff)
downloadAppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.gz
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.tar.bz2
AppliGestionPHP-05e38eadbeb3de19e5b26003c2b401e00bb71df4.zip
sortie de vendor du dépôt, oubli dans config-template.ini
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/ConcurrentRegion.php')
-rw-r--r--vendor/doctrine/orm/src/Cache/ConcurrentRegion.php36
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/doctrine/orm/src/Cache/ConcurrentRegion.php b/vendor/doctrine/orm/src/Cache/ConcurrentRegion.php
deleted file mode 100644
index e9ca870..0000000
--- a/vendor/doctrine/orm/src/Cache/ConcurrentRegion.php
+++ /dev/null
@@ -1,36 +0,0 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Cache;
6
7/**
8 * Defines contract for concurrently managed data region.
9 * It should be able to lock an specific cache entry in an atomic operation.
10 *
11 * When a entry is locked another process should not be able to read or write the entry.
12 * All evict operation should not consider locks, even though an entry is locked evict should be able to delete the entry and its lock.
13 */
14interface ConcurrentRegion extends Region
15{
16 /**
17 * Attempts to read lock the mapping for the given key.
18 *
19 * @param CacheKey $key The key of the item to lock.
20 *
21 * @return Lock|null A lock instance or NULL if the lock already exists.
22 *
23 * @throws LockException Indicates a problem accessing the region.
24 */
25 public function lock(CacheKey $key): Lock|null;
26
27 /**
28 * Attempts to read unlock the mapping for the given key.
29 *
30 * @param CacheKey $key The key of the item to unlock.
31 * @param Lock $lock The lock previously obtained from {@link readLock}
32 *
33 * @throws LockException Indicates a problem accessing the region.
34 */
35 public function unlock(CacheKey $key, Lock $lock): bool;
36}