You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (Jira)" <ji...@apache.org> on 2020/04/16 12:30:00 UTC
[jira] [Resolved] (WICKET-6769) InMemoryPageStore customizable map
implementation
[ https://issues.apache.org/jira/browse/WICKET-6769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier resolved WICKET-6769.
--------------------------------
Resolution: Fixed
> InMemoryPageStore customizable map implementation
> -------------------------------------------------
>
> Key: WICKET-6769
> URL: https://issues.apache.org/jira/browse/WICKET-6769
> Project: Wicket
> Issue Type: Improvement
> Components: wicket
> Affects Versions: 9.0.0-M5
> Reporter: Sven Meier
> Assignee: Sven Meier
> Priority: Major
> Fix For: 9.0.0-M6
>
> Attachments: screenshot-1.png
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)