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
<[email protected]> wrote:
>
> 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.
>
> You unwrapped the NestedQueryCache yourself, so yeah, underneath it is the 
> same object ;)
>
> NestedQueryCache just maps itself to a unique "region" of the same cache 
> object. This way you can manage the size, notifications, expiration, etc. of 
> a single cache, and not N+1 caches where N is the number of ObjectContexts in 
> the system.
>
> Andrus

Reply via email to