You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2020/04/15 21:53:00 UTC

[jira] [Commented] (WICKET-6769) InMemoryPageStore customizable map implementation

    [ https://issues.apache.org/jira/browse/WICKET-6769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17084404#comment-17084404 ] 

ASF subversion and git services commented on WICKET-6769:
---------------------------------------------------------

Commit 2a6a0641b512137500a8cf74a11a00e4a4879bb7 in wicket's branch refs/heads/master from Sven Meier
[ https://gitbox.apache.org/repos/asf?p=wicket.git;h=2a6a064 ]

WICKET-6769 allow custom map implementation


> 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
>
>
> 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)