cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Jarrel <garyjar...@gmail.com>
Subject Re: More on caching
Date Fri, 28 May 2010 06:25:54 GMT
On Fri, May 28, 2010 at 4:20 PM, Gary Jarrel <garyjarrel@gmail.com> wrote:

>    SelectQuery q = new SelectQuery(Admin.class);
>    q.setCacheGroups("testGroup");
>    q.setCacheStrategy(QueryCacheStrategy.SHARED_CACHE);
>
>    List<Admin> result = getDataContext().performQuery(q);
>    assertEquals(2, result.size());

Further to my email I was reading through the Removing Cache Groups
post and I changed SHARED_CACHE to LOCAL_CACHE and the test ran
perfectly. Only a single execution of SQL from the QueryLogger and the
cache size was 1.

???

Gary

Mime
View raw message