Won't Fix
Details
Details
Assignee
Unassigned
UnassignedReporter
Dana Naideth
Dana NaidethComponents
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created April 28, 2011 at 3:01 PM
Updated April 29, 2011 at 4:05 PM
Resolved April 29, 2011 at 4:05 PM
This method appears to return all named query caches, but does not return the standard query cache. For example:
// standard query cache used here
var x = session.CreateCriteria(typeof(User)).SetCacheable(true).List();
// named query cache used here
var y = session.CreateCriteria(typeof(User)).SetCacheable(true).SetCacheRegion("NamedCacheRegion")List();
I realize that there property "SessionFactoryImpl.QueryCache" that provides access to the standard query cache, but it seems inconsistent to me that "SessionFactoryImpl.GetALLSecondLevelCacheRegions()" would return some, but not all of the query caches.