Annotation Type Cached


@Retention(RUNTIME) @Target(METHOD) public @interface Cached
Ensures that the method is cached, where the key is a parameter annotated with @CacheKey and the value is the result of the method.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
  • Element Details

    • value

      String value
      Returns:
      A duration in ISO-8601 format that indicated the amount of time before this cache is invalidated.
    • type

      Returns:
      The type of cache invalidation strategy to use, whether to invalidate on expired duration after last insertion or on expiration after last access
      Default:
      LAST_INSERTED