mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #889] [CLOSED] Allow to set second level cache lifetime through mapping #8856
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/889
Author: @bakura10
Created: 12/26/2013
Status: ❌ Closed
Base:
master← Head:lifetime-cache📝 Commits (10+)
5b0db6eRebase to master46a686aAllow to specify lifetime in mappingc09b5fbMerge branch 'master' of https://github.com/doctrine/doctrine2 into lifetime-cachec017739Add doc7742a38Fix alignment4a85e23Remove default value to ensure it can use global config value83d144cSet default value in testsdbf166cUpdate XSD filef316e0fRevert files38c3d6eMerge branch 'master' of https://github.com/doctrine/doctrine2 into lifetime-cache📊 Changes
11 files changed (+102 additions, -68 deletions)
View changed files
📝
docs/en/reference/second-level-cache.rst(+6 -5)📝
doctrine-mapping.xsd(+45 -44)📝
lib/Doctrine/ORM/Cache/DefaultCacheFactory.php(+4 -1)📝
lib/Doctrine/ORM/Cache/RegionsConfiguration.php(+10 -0)📝
lib/Doctrine/ORM/Mapping/Cache.php(+6 -1)📝
lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php(+6 -4)📝
lib/Doctrine/ORM/Mapping/Driver/XmlDriver.php(+6 -4)📝
lib/Doctrine/ORM/Mapping/Driver/YamlDriver.php(+6 -4)📝
tests/Doctrine/Tests/Models/Cache/City.php(+4 -4)📝
tests/Doctrine/Tests/ORM/Cache/CacheConfigTest.php(+3 -1)📝
tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php(+6 -0)📄 Description
Hi,
I don't fully understand the new second-level cache feature yet, but the doc looks promising. I realized it could be really nice to be able to specify the lifetime directly through mapping.
I'm not sure if this is a good idea yet, please tell me. I've updated the tests and the doc too.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.