diff options
| author | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2024-08-13 23:45:21 +0200 |
| commit | bf6655a534a6775d30cafa67bd801276bda1d98d (patch) | |
| tree | c6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/orm/src/Cache/Region.php | |
| parent | 94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff) | |
| download | AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.gz AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.tar.bz2 AppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip | |
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/orm/src/Cache/Region.php')
| -rw-r--r-- | vendor/doctrine/orm/src/Cache/Region.php | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Cache/Region.php b/vendor/doctrine/orm/src/Cache/Region.php new file mode 100644 index 0000000..f7a1b26 --- /dev/null +++ b/vendor/doctrine/orm/src/Cache/Region.php | |||
| @@ -0,0 +1,73 @@ | |||
| 1 | <?php | ||
| 2 | |||
| 3 | declare(strict_types=1); | ||
| 4 | |||
| 5 | namespace Doctrine\ORM\Cache; | ||
| 6 | |||
| 7 | use Doctrine\ORM\Cache\Exception\CacheException; | ||
| 8 | |||
| 9 | /** | ||
| 10 | * Defines a contract for accessing a particular named region. | ||
| 11 | */ | ||
| 12 | interface Region | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * Retrieve the name of this region. | ||
| 16 | */ | ||
| 17 | public function getName(): string; | ||
| 18 | |||
| 19 | /** | ||
| 20 | * Determine whether this region contains data for the given key. | ||
| 21 | * | ||
| 22 | * @param CacheKey $key The cache key | ||
| 23 | */ | ||
| 24 | public function contains(CacheKey $key): bool; | ||
| 25 | |||
| 26 | /** | ||
| 27 | * Get an item from the cache. | ||
| 28 | * | ||
| 29 | * @param CacheKey $key The key of the item to be retrieved. | ||
| 30 | * | ||
| 31 | * @return CacheEntry|null The cached entry or NULL | ||
| 32 | * | ||
| 33 | * @throws CacheException Indicates a problem accessing the item or region. | ||
| 34 | */ | ||
| 35 | public function get(CacheKey $key): CacheEntry|null; | ||
| 36 | |||
| 37 | /** | ||
| 38 | * Get all items from the cache identified by $keys. | ||
| 39 | * It returns NULL if some elements can not be found. | ||
| 40 | * | ||
| 41 | * @param CollectionCacheEntry $collection The collection of the items to be retrieved. | ||
| 42 | * | ||
| 43 | * @return CacheEntry[]|null The cached entries or NULL if one or more entries can not be found | ||
| 44 | */ | ||
| 45 | public function getMultiple(CollectionCacheEntry $collection): array|null; | ||
| 46 | |||
| 47 | /** | ||
| 48 | * Put an item into the cache. | ||
| 49 | * | ||
| 50 | * @param CacheKey $key The key under which to cache the item. | ||
| 51 | * @param CacheEntry $entry The entry to cache. | ||
| 52 | * @param Lock|null $lock The lock previously obtained. | ||
| 53 | * | ||
| 54 | * @throws CacheException Indicates a problem accessing the region. | ||
| 55 | */ | ||
| 56 | public function put(CacheKey $key, CacheEntry $entry, Lock|null $lock = null): bool; | ||
| 57 | |||
| 58 | /** | ||
| 59 | * Remove an item from the cache. | ||
| 60 | * | ||
| 61 | * @param CacheKey $key The key under which to cache the item. | ||
| 62 | * | ||
| 63 | * @throws CacheException Indicates a problem accessing the region. | ||
| 64 | */ | ||
| 65 | public function evict(CacheKey $key): bool; | ||
| 66 | |||
| 67 | /** | ||
| 68 | * Remove all contents of this particular cache region. | ||
| 69 | * | ||
| 70 | * @throws CacheException Indicates problem accessing the region. | ||
| 71 | */ | ||
| 72 | public function evictAll(): bool; | ||
| 73 | } | ||
