independent-analytics
/
vendor
/
doctrine
/
cache
/
lib
/
Doctrine
/
Common
/
Cache
Last commit date
Psr6
2 years ago
ApcCache.php
2 years ago
ApcuCache.php
2 years ago
ArrayCache.php
2 years ago
Cache.php
2 years ago
CacheProvider.php
2 years ago
ChainCache.php
2 years ago
ClearableCache.php
2 years ago
CouchbaseBucketCache.php
2 years ago
CouchbaseCache.php
2 years ago
ExtMongoDBCache.php
2 years ago
FileCache.php
2 years ago
FilesystemCache.php
2 years ago
FlushableCache.php
2 years ago
InvalidCacheId.php
2 years ago
LegacyMongoDBCache.php
2 years ago
MemcacheCache.php
2 years ago
MemcachedCache.php
2 years ago
MongoDBCache.php
2 years ago
MultiDeleteCache.php
2 years ago
MultiGetCache.php
2 years ago
MultiOperationCache.php
2 years ago
MultiPutCache.php
2 years ago
PhpFileCache.php
2 years ago
PredisCache.php
2 years ago
RedisCache.php
2 years ago
SQLite3Cache.php
2 years ago
Version.php
2 years ago
VoidCache.php
2 years ago
WinCacheCache.php
2 years ago
XcacheCache.php
2 years ago
ZendDataCache.php
2 years ago
VoidCache.php
58 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP_SCOPED\Doctrine\Common\Cache; |
| 4 | |
| 5 | /** |
| 6 | * Void cache driver. The cache could be of use in tests where you don`t need to cache anything. |
| 7 | * |
| 8 | * @deprecated Deprecated without replacement in doctrine/cache 1.11. This class will be dropped in 2.0 |
| 9 | * |
| 10 | * @link www.doctrine-project.org |
| 11 | * @internal |
| 12 | */ |
| 13 | class VoidCache extends CacheProvider |
| 14 | { |
| 15 | /** |
| 16 | * {@inheritDoc} |
| 17 | */ |
| 18 | protected function doFetch($id) |
| 19 | { |
| 20 | return \false; |
| 21 | } |
| 22 | /** |
| 23 | * {@inheritDoc} |
| 24 | */ |
| 25 | protected function doContains($id) |
| 26 | { |
| 27 | return \false; |
| 28 | } |
| 29 | /** |
| 30 | * {@inheritDoc} |
| 31 | */ |
| 32 | protected function doSave($id, $data, $lifeTime = 0) |
| 33 | { |
| 34 | return \true; |
| 35 | } |
| 36 | /** |
| 37 | * {@inheritDoc} |
| 38 | */ |
| 39 | protected function doDelete($id) |
| 40 | { |
| 41 | return \true; |
| 42 | } |
| 43 | /** |
| 44 | * {@inheritDoc} |
| 45 | */ |
| 46 | protected function doFlush() |
| 47 | { |
| 48 | return \true; |
| 49 | } |
| 50 | /** |
| 51 | * {@inheritDoc} |
| 52 | */ |
| 53 | protected function doGetStats() |
| 54 | { |
| 55 | return; |
| 56 | } |
| 57 | } |
| 58 |