[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12870142#action_12870142
 ] 

Oleg Kalnichevski commented on HTTPCLIENT-937:
----------------------------------------------

@David

We could take this one step further and let the HttpCache decide what kind of 
HttpEntity implementation to use as a cache entry. Ultimately I would like to 
make it possible to use FileEntity for storing cached content. However, there 
is one important aspect to be taken into consideration. When backed by the file 
system a cache must be able to dispose of expired cache entries in such a way 
that no files would be left lying around or other system resources unreleased. 
The cache should also be able to keep track of references to cache entries to 
ensure they could be disposed of only when not referenced.

Oleg    

> Make CacheEntry use an immutable object to represent cache content 
> -------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-937
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-937
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: Cache
>            Reporter: Oleg Kalnichevski
>             Fix For: 4.1 Alpha3
>
>         Attachments: 
> Making_CacheEntry_return_HttpEntity_for_getBody_NO_TESTS.patch, 
> Making_CacheEntry_return_HttpEntity_for_getBody_TESTS_ONLY.patch
>
>
> Make CacheEntry use an immutable object to represent cache content similar to 
> HttpEntity

-- 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to