use of cn.taketoday.cache.interceptor.CacheEvictInterceptor in project today-framework by TAKETODAY.
the class ProxyCachingConfiguration method cacheEvictInterceptor.
@Aspect
@Component
@ConditionalOnMissingBean
@Advice(CacheEvict.class)
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
CacheEvictInterceptor cacheEvictInterceptor(CacheManager cacheManager, CacheExpressionOperations operations) {
CacheEvictInterceptor cacheEvictInterceptor = new CacheEvictInterceptor(cacheManager);
cacheEvictInterceptor.setExpressionOperations(operations);
return cacheEvictInterceptor;
}
Aggregations