Search in sources :

Example 1 with CachePutInterceptor

use of cn.taketoday.cache.interceptor.CachePutInterceptor in project today-framework by TAKETODAY.

the class ProxyCachingConfiguration method cachePutInterceptor.

@Aspect
@Component
@Advice(CachePut.class)
@ConditionalOnMissingBean
@Role(BeanDefinition.ROLE_INFRASTRUCTURE)
CachePutInterceptor cachePutInterceptor(CacheManager cacheManager, CacheExpressionOperations operations) {
    CachePutInterceptor cachePutInterceptor = new CachePutInterceptor(cacheManager);
    cachePutInterceptor.setExpressionOperations(operations);
    return cachePutInterceptor;
}
Also used : CachePutInterceptor(cn.taketoday.cache.interceptor.CachePutInterceptor) Role(cn.taketoday.context.annotation.Role) ConditionalOnMissingBean(cn.taketoday.context.condition.ConditionalOnMissingBean) Advice(cn.taketoday.aop.support.annotation.Advice) Aspect(cn.taketoday.aop.support.annotation.Aspect) Component(cn.taketoday.lang.Component)

Aggregations

Advice (cn.taketoday.aop.support.annotation.Advice)1 Aspect (cn.taketoday.aop.support.annotation.Aspect)1 CachePutInterceptor (cn.taketoday.cache.interceptor.CachePutInterceptor)1 Role (cn.taketoday.context.annotation.Role)1 ConditionalOnMissingBean (cn.taketoday.context.condition.ConditionalOnMissingBean)1 Component (cn.taketoday.lang.Component)1