Annotation Interface Cacheable


@Target({METHOD,TYPE}) @Retention(RUNTIME) @Inherited @Documented public @interface Cacheable
Annotation indicating that a method (or all the methods on a class) can be cached.

The method arguments and signature are used for computing the key while the returned instance is used as the cache value.

从以下版本开始:
2.1.1, 2.2.2 this is no longer is an aspect, but just serves as a marker for cached items
  • 必需元素概要

    所需元素
    修饰符和类型
    必需的元素
    说明
     
  • 元素详细资料