Having a flexible eviction policy would be nice, but if we decide to for this way I would strongly recommend to NOT start implementing our own cache solution. Instead, we should consider to adopt one of the existing solutions (like Guava cache). > > An additional consideration: what about getPage(String sessionId, int > pageId), should this also update the modification time (or maybe better: > „lastAccessTime“) of the returned page? Pages that are more frequently > requested maybe should be removed later from the cache …!? > > >> Your suggestion would be much simpler to implement but the total size of >> this cache will be dynamic and will depend on the number of the active >> sessions. But since this cache uses SoftReference for the values (the >> pages) I think this won't be a problem. > We could have a (configurable) global limit for all cached pages in all > sessions, if that limit is reached, the least recently accessed/modified page > could be removed … > > > Cheers, > -Tom > >
- Inefficient org.apache.wicket.pageStore.DefaultPageStore.S... Martin Grigorov
- Re: Inefficient org.apache.wicket.pageStore.DefaultPa... Tom Götz
- Re: Inefficient org.apache.wicket.pageStore.Defau... Martin Grigorov
- Re: Inefficient org.apache.wicket.pageStore.DefaultPa... Andrea Del Bene
- Re: Inefficient org.apache.wicket.pageStore.Defau... Martin Grigorov
- Re: Inefficient org.apache.wicket.pageStore.D... Tom Götz
- Re: Inefficient org.apache.wicket.pageSto... Nick Pratt
- Re: Inefficient org.apache.wicket.pa... Martin Grigorov
- Re: Inefficient org.apache.wicket.pageSto... Andrea Del Bene
- Re: Inefficient org.apache.wicket.pa... Martin Grigorov
- Re: Inefficient org.apache.wicke... Martin Grigorov
- Re: Inefficient org.apache.w... Michael Mosmann
- Re: Inefficient org.apache.w... Martin Grigorov
- Re: Inefficient org.apache.w... Michael Mosmann
- Re: Inefficient org.apache.w... Michael Mosmann
- Re: Inefficient org.apache.w... Martin Grigorov
- Re: Inefficient org.apache.w... Michael Mosmann
- Re: Inefficient org.apache.wicket.pageStore.DefaultPa... Guillaume Smet
- Re: Inefficient org.apache.wicket.pageStore.Defau... Martin Grigorov