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