| 1 | <?php |
||
| 16 | class TransactionHandler extends AbstractInMemoryHandler implements TransactionHandlerInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @todo Maybe this can be solved by contributing to Symfony, as in for instance using a layered cache with memory |
||
| 20 | * cache first and use saveDefered so cache is not persisted before commit is made, and omitted on rollback. |
||
| 21 | * |
||
| 22 | * Or if we can get a checksum /fingerprint from cache pool which changes on actually cache commit so we can |
||
| 23 | * keep track to see if it has changed (to know if it is enough to clear inMemory cache + cache pool defer que) |
||
| 24 | * |
||
| 25 | * {@inheritdoc} |
||
| 26 | */ |
||
| 27 | public function beginTransaction() |
||
| 32 | |||
| 33 | /** |
||
| 34 | * {@inheritdoc} |
||
| 35 | */ |
||
| 36 | public function commit() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function rollback() |
||
| 51 | } |
||
| 52 |