Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-375

Cache invalidation

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.3-RC1
    • 1.2.1.GA
    • jaxrs
    • None

      I am using the @Cache annotation to cache some results.

      I would like to control the cache invalidation. One thought is to give the cache a name, then being able to invalidate the cache by specifying the name. For example:

      @Cache(maxAge=60000, name="myCache")
      public Date getMyDate() {
      ...
      }

      Then, to invalidate:

      RestCache.invalidate("myCache");

              patriot1burke@gmail.com Bill Burke (Inactive)
              awhitford Anthony Whitford (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: