You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "dugenkui03 (GitHub)" <gi...@apache.org> on 2018/10/08 03:32:56 UTC

[GitHub] [incubator-dubbo] dugenkui03 commented on issue #2592: 缓存对象回收

> @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并发编程实战》5.6,page 87(<java Concurrency in practiceh>).

details in [PR](https://github.com/apache/incubator-dubbo/pull/2594)

[ Full content available at: https://github.com/apache/incubator-dubbo/issues/2592 ]
This message was relayed via gitbox.apache.org for notifications@dubbo.apache.org