Package org.springframework.cache.transaction
@NullMarked
package org.springframework.cache.transaction
Transaction-aware decorators for the org.springframework.cache package.
Provides synchronization of put operations with Spring-managed transactions.
-
ClassDescriptionBase class for CacheManager implementations that want to support built-in awareness of Spring-managed transactions.Cache decorator which synchronizes its
TransactionAwareCacheDecorator.put(java.lang.Object, java.lang.Object)
,TransactionAwareCacheDecorator.evict(java.lang.Object)
andTransactionAwareCacheDecorator.clear()
operations with Spring-managed transactions (through Spring'sTransactionSynchronizationManager
), performing the actual cache put/evict/clear operation only in the after-commit phase of a successful transaction.Proxy for a targetCacheManager
, exposing transaction-awareCache
objects which synchronize theirCache.put(java.lang.Object, java.lang.Object)
operations with Spring-managed transactions (through Spring'sTransactionSynchronizationManager
), performing the actual cache put operation only in the after-commit phase of a successful transaction.