Re: [hibernate-dev] API to clear/evict all caches in a session factory

2012-02-22 Thread Steve Ebersole
Well one reason would be to trigger clearing of the update-timestamps cache. I am leery of exposing a method to allow just that fuinctionality. On Wed 22 Feb 2012 10:00:43 AM CST, Steve Ebersole wrote: > There is already: > sf.getCache().evictEntityRegions() > sf.getCache().evictCollectionRegio

Re: [hibernate-dev] API to clear/evict all caches in a session factory

2012-02-22 Thread Steve Ebersole
There is already: sf.getCache().evictEntityRegions() sf.getCache().evictCollectionRegions() sf.getCache().evictDefaultQueryRegion() sf.getCache().evictQueryRegions() I can see a benefit to having evictQueryRegions() imply evictDefaultQueryRegion() But, I fail to see a real benefit to a singular