Annotation Interface Cache


@Retention(RUNTIME) @Target({FIELD,TYPE}) public @interface Cache
Cache annotation to set the caching policy of Actions.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Cache keys (names of the key values in input JSON map, eg "userID")
    int
    Time To Live (TTL) of entry, in seconds.
  • Element Details

    • keys

      String[] keys
      Cache keys (names of the key values in input JSON map, eg "userID")
      Returns:
      cache keys
      Default:
      {}
    • ttl

      int ttl
      Time To Live (TTL) of entry, in seconds.
      Returns:
      ttl in seconds (0 = never expires / use cache's default TTL)
      Default:
      0