[ https://issues.apache.org/jira/browse/HTTPCLIENT-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michajlo Matijkiw updated HTTPCLIENT-978: ----------------------------------------- Attachment: httpclient-cache_ehcache-patch2.patch Sorry about that, I have attached the updated patch against the trunk. Most remains the same from the last cache, I have made all of EhcacheHttpCache's operations synchronized. I have also added another test which runs the protocol requirement tests against a CachingHttpClientCache using the Ehcache backend. Something that should be discussed is behavior on a failed update. In the event of multiple EhcacheHttpCache instances updating the same cache they may trample eachothers' data on update. For now we do a compare and swap update, and throw an IOException on failure. This might be a good case to reintroduce the HttpCacheOperationException. Having a configurable number of retries before throwing an exception is another option to explore. > provide an ehcache implementation for HttpCache > ----------------------------------------------- > > Key: HTTPCLIENT-978 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-978 > Project: HttpComponents HttpClient > Issue Type: New Feature > Components: Cache > Reporter: Jonathan Moore > Attachments: httpclient-cache_ehcache-patch.patch, > httpclient-cache_ehcache-patch2.patch > > > Provide an implementation of the HttpCache interface that stores cache > entries in ehcache. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org