This content has been marked as final.
Show 2 replies
-
1. Re: Efficient way to clear TreeCache?
nadirx Mar 30, 2016 2:55 PM (in response to mudiobada)The semantics of cache.clear() were changed in 7.2.0.Final [ISPN-5370] Make clear() non-transactional and lock free - JBoss Issue Tracker.
The same concepts were not transposed to the Tree cache. Probably an equivalent TreeCache.clear() method (which would essentially do what you describe above) would be useful.
-
2. Re: Efficient way to clear TreeCache?
mudiobada Apr 7, 2016 7:32 AM (in response to nadirx)Thanks for pointing out situation and the newer semantics in 7.2.
The implementation you outlined that follows the semantics of Cache.clear() would definitely be appropriate for our use case.
We only clear the CacheTree after ensuring that other nodes are blocked out.