Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2288

Improve JavaDoc clarity for @Cached annotation.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 5.4
    • tapestry-core

    Description

      The JavaDoc for the @Cached annotation:

      https://github.com/apache/tapestry-5/blob/master/tapestry-core/src/main/java/org/apache/tapestry5/annotations/Cached.java

      Says:

      "Indicates that a method should only be evaluated once and the result cached. All further calls to the method will return the cached result."

      This implies the value is cached forever, but this link says per-request:

      http://tapestry.apache.org/component-cheat-sheet.html

      Please correct the JavaDoc or cheat sheet to specify the actual cached duration (forever, session, request, etc).

      Thanks!

      Attachments

        Activity

          People

            bobharner Bob Harner
            blacknext Michael Gentry
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: