Annotation Interface CacheAdd


@Target(METHOD) @Retention(RUNTIME) public @interface CacheAdd
Never get the value from cache, get it from method and cache the result.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    An annotation literal for the CacheAdd annotation.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    The number of milliseconds until the cache entry expires.
  • Element Details

    • ttl

      long ttl
      The number of milliseconds until the cache entry expires.
      Returns:
      the number of milliseconds until the cache entry expires
      Default:
      0L