@Cacheable should participate in transactions [SPR-9966] #14600
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Etienne Studer opened SPR-9966 and commented
As discussed with Jürgen this morning at W-JAX, if a
@Cacheable
method is called from within a@Transactional
method and the transaction fails, the item is not removed from the cache for non-XA cache managers.Basically, the item should not be added to the cache until the transaction has succeeded.
Alternatively, the item could be added immediately but removed if the transaction fails -> this would allow to get the cached item during the transaction, which helps if the item needs is accessed multiple times.
Affects: 3.1.1
Referenced from: commits e2f418a
The text was updated successfully, but these errors were encountered: