Annotation Interface CachedGet


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface CachedGet
Since:
Java 17+
Author:
Kimi Liu
  • Element Details

    • value

      String value
      Returns:
      Specifies the Used cache implementation, default the first caches config in CacheAspect
      Default:
      ""
    • prefix

      String prefix
      Returns:
      Specifies the start keyExp on every key, if the Method have non param, keyExp is the consts key used by this Method
      Default:
      ""
    • condition

      String condition
      Returns:
      the string when this spel is true, this Method will go through by cache
      Default:
      ""