Package play.cache

Annotation Interface CacheFor


@Retention(RUNTIME) @Target(METHOD) public @interface CacheFor
Cache an action's result.

If a time is not specified, the results will be cached for 1 hour by default.

Example: @CacheFor("1h")

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Element Details

    • value

      String value
      Default:
      "1h"
    • id

      String id
      Default:
      ""