cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hugi Thordarson <h...@karlmenn.is>
Subject Re: Explicitly invalidating all cached objects in a ServerRuntime/ObjectContext
Date Wed, 26 Oct 2016 14:56:51 GMT
I owe you a big, big beer. Or a soda if you prefer.

Cheers,
- hugi


> On 26. okt. 2016, at 14:39, John Huss <johnthuss@gmail.com> wrote:
> 
> Collection<?> allNodes = context.getGraphManager().registeredNodes();
> 
> context.invalidateObjects(allNodes);
> 
> On Wed, Oct 26, 2016 at 8:51 AM Hugi Thordarson <hugi@karlmenn.is> wrote:
> 
>> Hi all.
>> I’ve been fighting a little with caching in the past few days. Is there
>> any way for me to just tell Cayenne invalidate all cached data? Just tell
>> it that the universe as it know it is now invalid and all queries should
>> fetch fresh data?
>> 
>> Cheers,
>> - hugi


Mime
View raw message