[ https://issues.apache.org/jira/browse/COCOON3-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Simone Tripodi updated COCOON3-9: --------------------------------- Attachment: InMemoryMRUCache.java Hi Steven, you and I both agree that we don't need a complex cache system implemented in the cocoon packages - if users need more complex systems, they have to implement them - but I noticed that thanks to a small trick on java.util.LinkedHashMap we can provide a very simple implementation of MRU cache, modifying a little your org.apache.cocoon.pipeline.caching.SimpleCache. The attached class shows you how to use the trick, I hope this helps. I suggest you to rename the org.apache.cocoon.pipeline.caching.SimpleCache class in org.apache.cocoon.pipeline.caching.InMemoryMRUCache, IMHO sounds more intuitive for users. > Generalize the PipelineCache, so that it can be used as a general purpose > cache for PipelineComponents as well. > --------------------------------------------------------------------------------------------------------------- > > Key: COCOON3-9 > URL: https://issues.apache.org/jira/browse/COCOON3-9 > Project: Cocoon 3 > Issue Type: Improvement > Components: cocoon-pipeline > Affects Versions: 3.0.0-alpha-1 > Reporter: Steven Dolg > Assignee: Cocoon Developers Team > Fix For: 3.0.0-alpha-2 > > Attachments: cache-fixed.patch, cache.patch, InMemoryMRUCache.java > > > Currently the PipelineCache is very specific for caching the complete results > of a pipeline execution. > COCOON3-6 is the first issue requiring a caching mechanism at the > PipelineComponent level. > With only some minor modifications the PipelineCache can be used for those > requirements. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.