Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
In addition to verbose version of configuring query caching:
query.setCacheStrategy(QueryCacheStrategy.LOCAL_CACHE);
query.setCacheGroups("g1", "g2")
add a short one:
query.useLocalCache("g1", "g2");
or
query.useSharedCache("g1", "g2");
Both are varargs methods of course. We probably don't care to have separate methods for more obscure cache strategies, such as LOCAL_CACHE_REFRESH, which can be configured the old way.