cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: Individual Object Caching
Date Thu, 28 Jan 2010 10:06:36 GMT
Yes, a query refreshes cached objects (unless the query itself is  
served from cache).

Andrus

On Jan 28, 2010, at 11:59 AM, Nishant Neeraj wrote:

> Hi,
>
> I am a bit confused on the way Cayenne handles object-cache. It  
> sounds to me that object-cache gets invalidated [1], whenever a call  
> like this takes place
>
> loadMenu(){...
> SelectQuery query = new SelectQuery(PaintingType.class, ...);
> return (List<PaintingType>)context.performQuery(query);
> }
> Now, there are multiple users accessing the same page that calls  
> loadMenu(), as per the document [1], for each user Object-Cache for  
> this would be flushed and restores.
>
> [1] http://cayenne.apache.org/doc/individual-object-caching.html
>
> RegardsNishant
>
>
>      Your Mail works best with the New Yahoo Optimized IE8. Get it  
> NOW! http://downloads.yahoo.com/in/internetexplorer/


Mime
View raw message