phoenix icon indicating copy to clipboard operation
phoenix copied to clipboard

Second Cache Level - allow "default_multi" in region type

Open orfin opened this issue 8 years ago • 2 comments

Currently it is only possible to configure "default" region type but https://github.com/doctrine/doctrine2/pull/954 introduced optimized Doctrine\ORM\Cache\Region\DefaultMultiGetRegion region that uses fetchMultiple method.

Proposal:

  • allow to use "default_multi" under second_level_cache.regions.type configuration.

BTW. currently DefaultMultiGetRegion is not even documented in Doctrine docs: http://doctrine-orm.readthedocs.io/projects/doctrine-orm/en/latest/reference/second-level-cache.html#cache-regions so I'm not sure if it is production-ready?

orfin avatar Jun 20 '16 12:06 orfin

Pull requests are welcome :)

kimhemsoe avatar Mar 29 '18 16:03 kimhemsoe

Doctrine team is contemplating switching to PSR caches in our projects. In such case this configuration would no longer be needed, as all PSR caches support multi get

ostrolucky avatar Dec 01 '19 17:12 ostrolucky

From what I can tell this is obsolete now. DefaultMultiGetRegion is deprecated and the second level cache is now using PSR caches.

dmaicher avatar Dec 09 '22 14:12 dmaicher