Re: 3.1 Module & Cache Configuration

2011-09-13 Thread Andrus Adamchik
On Sep 13, 2011, at 5:12 PM, Gary Jarrel wrote: > I have an annotation similar to > CacheGroups but it goes further into tracking whether an object should > be cached in local or shared cache. Also keep in mind that Cayenne uses QueryCache for caching query results. There is still a separate ca

Re: 3.1 Module & Cache Configuration

2011-09-13 Thread Gary Jarrel
I'm testing a DataChannelFilter very similar to CacheInvalidationFilter with a few extras mainly invalidating groups in either Shared or Local caches. I have an annotation similar to CacheGroups but it goes further into tracking whether an object should be cached in local or shared cache. I'll dig

Re: 3.1 Module & Cache Configuration

2011-09-13 Thread Andrus Adamchik
Not quite sure what you are planning to test, but my guess would be you need to use NestedQueryCache instance. Andrus On Sep 13, 2011, at 4:49 PM, Gary Jarrel wrote: > Ahhh I see :) so what is the best way to test local and shared cache > from the point of view of adding and removing objects? >

Re: 3.1 Module & Cache Configuration

2011-09-13 Thread Gary Jarrel
Ahhh I see :) so what is the best way to test local and shared cache from the point of view of adding and removing objects? garyj On Tue, Sep 13, 2011 at 11:34 PM, Andrus Adamchik wrote: > > On Sep 13, 2011, at 4:30 PM, Gary Jarrel wrote: > >> now what I am finding is that both domainCache and c

Re: 3.1 Module & Cache Configuration

2011-09-13 Thread Andrus Adamchik
On Sep 13, 2011, at 4:30 PM, Gary Jarrel wrote: > now what I am finding is that both domainCache and contextCache is the > same object, when I would have though they would have been two > different instance of OSQueryCache given that one is the local cache > and the other is the shared cache. Yo

3.1 Module & Cache Configuration

2011-09-13 Thread Gary Jarrel
Hi All Again, Still doing testing on the new configuration and rewriting some code to 3.1, and have come across the following issue: My configuration code again: Module extensions = new Module() { @Override public void configure(Binder binder) { binder.bind(QueryCache.class).to(O