Package org.springframework.cache.transaction
Transaction-aware decorators for the org.springframework.cache package. Provides synchronization of put operations with Spring-managed transactions.
Class Summary Class Description AbstractTransactionSupportingCacheManager Base class for CacheManager implementations that want to support built-in awareness of Spring-managed transactions.TransactionAwareCacheDecorator Cache decorator which synchronizes itsTransactionAwareCacheDecorator.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.TransactionAwareCacheManagerProxy 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.