Yes, it has to be defined in a custom DI module. E.g.: binder.bind(QueryCache.class).toProvider(OSQueryCacheProvider.class);
In the upcoming M3 this is further refined, but the basic idea is the same. Andrus On Sep 8, 2011, at 9:52 AM, Gary Jarrel wrote: > Hi All, > > I'm in the process of converting a small project to Cayenne 3.1M2 and > also trying to get my head around some of the changes. > > At one stage I have the Cache Factory setting code: > > domain.setQueryCacheFactory(new OSQueryCacheFactory()); > > (I know that OSCache is slowly being replaced) > > But looking at the source of DataDomain the setQueryCacheFactory > method does not seem to be there any more?! > > Is there a new way of doing this? > > Thank you > > Gary >
