mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
[PR #954] [CLOSED] Multi Get support for Second Level Cache #8955
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/doctrine/orm/pull/954
Author: @goetas
Created: 2/14/2014
Status: ❌ Closed
Base:
master← Head:multiget📝 Commits (9)
08d5e70Added multi-get support for second level cached collections7748716Added test case for MultiGetRegioncb9e1deAdded test case for buildCachedCollectioHydrator on DefaultCacheFactory10331a5Added dependency with doctrine/cache 1.44c3fbeeRemoved dependency with Region interfacec131e32MultiGetCollectionHydrator depends knows the multi-get region0b57935Test suite: Second level cache listener should not mark "cacheable" versioned associationsb90576cNew buildCacheEntry way bo build a entry for a cached collection7494d2dChanged some tests to be compatible with the new implementation of📊 Changes
10 files changed (+187 additions, -17 deletions)
View changed files
📝
composer.json(+1 -0)📝
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php(+8 -2)📝
lib/Doctrine/ORM/Cache/DefaultCollectionHydrator.php(+14 -7)➕
lib/Doctrine/ORM/Cache/MultiGetRegion.php(+41 -0)📝
lib/Doctrine/ORM/Cache/Persister/Collection/AbstractCollectionPersister.php(+1 -2)➕
lib/Doctrine/ORM/Cache/Region/DefaultMultiGetRegion.php(+60 -0)📝
tests/Doctrine/Tests/EventListener/CacheMetadataListener.php(+16 -2)📝
tests/Doctrine/Tests/ORM/Cache/DefaultCacheFactoryTest.php(+1 -1)📝
tests/Doctrine/Tests/ORM/Cache/DefaultCollectionHydratorTest.php(+4 -3)➕
tests/Doctrine/Tests/ORM/Cache/MultiGetRegionTest.php(+41 -0)📄 Description
Hi!
As discussed here i have implemented some kind of multi-get for second level cache implementation.
I have also created a PR to doctrine/cache component (see https://github.com/doctrine/cache/pull/29) that enables this feature at driver cache level.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.