dugenkui03 edited a comment on issue #2592: 缓存对象回收
URL: 
https://github.com/apache/incubator-dubbo/issues/2592#issuecomment-427714338
 
 
   > @dugenkui03 with the clear method introduced on `Cache` interface, how do 
you plan to use it?
   
   @beiwei30 when we want to invalidate a ExpiringCache object and gc it.for 
example,yesterday's data does not apply today.
   
   i think there should be implements of 'clear' and 'remove',because 
high-performance cache alway use "Future" as Value-If a calculation is canceled 
or fails, it needs to be removed from the cache. this idea can be found in 
《java并发编程实战 java Concurrency in practice》5.6,page 87.
   
   details in [PR](https://github.com/apache/incubator-dubbo/pull/2594)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to