下面列出了怎么用org.springframework.cache.jcache.interceptor.AnnotatedJCacheableService的API类实例代码及写法,或者点击链接到github查看源代码。
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(defaultCache());
}
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(new ConcurrentMapCache("default"));
}
@Bean
public JCacheableService<?> service() {
return new AnnotatedJCacheableService(defaultCache());
}
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(defaultCache());
}
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(new ConcurrentMapCache("default"));
}
@Bean
public JCacheableService<?> service() {
return new AnnotatedJCacheableService(defaultCache());
}
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(defaultCache());
}
@Bean
public JCacheableService<?> cacheableService() {
return new AnnotatedJCacheableService(new ConcurrentMapCache("default"));
}
@Bean
public JCacheableService<?> service() {
return new AnnotatedJCacheableService(defaultCache());
}