Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6769

InMemoryPageStore customizable map implementation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.0.0-M5
    • 9.0.0
    • wicket
    • None

    Description

      In Wicket 8 PerSessionPageStore utilized SoftReferences to build a cache of pages in cooperation with the GC.

      The experts seem to agree that depending on the GC to clean up caches is a bad idea:

      https://stackoverflow.com/questions/264582/is-there-a-softhashmap-in-java

      http://jeremymanson.blogspot.com/2009/07/how-hotspot-decides-to-clear_07.html

      Instead of replicating the old feature, the new InMemoryPageStore should allow to be customized with a map implementation. This allows applications to utilize different map-based caches, e.g. https://github.com/ben-manes/caffeine

      Attachments

        1. screenshot-1.png
          134 kB
          Thomas Heigl

        Issue Links

          Activity

            People

              svenmeier Sven Meier
              svenmeier Sven Meier
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: