cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Explicitly invalidating all cached objects in a ServerRuntime/ObjectContext
Date Wed, 26 Oct 2016 14:39:09 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message