cacheable注解原理_SpringBoot:缓存注解@Cacheable详解

1.查看@Cacheable

@Target({ElementType.TYPE, ElementType.METHOD})

@Retention(RetentionPolicy.RUNTIME)

@Inherited

@Documented

public @interface Cacheable {

@AliasFor("cacheNames")

String[] value() default {};

@AliasFor("value")

String[] cacheNames() default {};

String key() default "";

String keyGenerator() default "";

String cacheManager() default "";

String cacheResolver() default "";

String condition() default "";

String unless() default "";

boolean sync() default false;

}

2.cacheNames和value

标签:缓存,SpringBoot,default,value,cacheNames,Cacheable,ElementType,String

来源: https://www.cnblogs.com/fdzang/p/11989889.html

你可能感兴趣的:(cacheable注解原理)