Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 93485 invoked from network); 29 Jan 2010 08:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Jan 2010 08:27:06 -0000 Received: (qmail 97004 invoked by uid 500); 29 Jan 2010 08:27:06 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 96953 invoked by uid 500); 29 Jan 2010 08:27:05 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 96943 invoked by uid 99); 29 Jan 2010 08:27:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Jan 2010 08:27:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [68.142.201.187] (HELO web31707.mail.mud.yahoo.com) (68.142.201.187) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 29 Jan 2010 08:26:57 +0000 Received: (qmail 38395 invoked by uid 60001); 29 Jan 2010 08:26:35 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1264753595; bh=zhB3qPNElFRZpcDDbMXa/ATV+5mr1BBSIVnYtPbmw0k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=G3BYaa9v0HZmDoCJivSFmWsDPZrVB6yRYpkTHmajSIJddXCYFZa2FvFoZ7CWz4lZii6jZq+5P+T4Bm1GR+SyRW35YVo9Gk0csrDm0CC3F3dgA5hd+JZox8lIiimuk1r4qj1JvV/HYciFKKO1NsGjqV08a0ls9F0YYtogBuGfjZY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=njTmFewG46/U9IJoP3Kn+raUDoot4wbSkbbJMEae21AegM6BnUDqvKv2ikfooVQQWI800+TywlHCNU3D/6Ti5Y39siv0aVNxSjDga8lpa3eiBp1pJPS6gyEj1Ko/NsNZBDMoCso8jwTjUdEEokA0sXKuWk6qAHIM58knFoyljxo=; Message-ID: <348966.34657.qm@web31707.mail.mud.yahoo.com> X-YMail-OSG: 9MfX5JQVM1l8slHbwISd9zsmXciYD2u4PJuU9wwRqc_d7nsdV9_WBLx2dVasWGR0zA75zh1f8iju_D6NgysBQdedSmcKsVisej3zIujH.3dDHLW2XyTYwYW7nxi6GZ8jU69gK34YGaZW_weCiH4BWFxOlKoeGyp3HFy2oUHMIjKGte8.C02bqQda5jQoHcPaVKr.K5x9s5eb5X8Y6cy3UN1wsT8g4aVxt4D1y7neUiVgU7Ci_eJAs73RM35a8I58pLCD_fj2HPj8MmjF40sx127W5vyz4_aey._uxEE2WnuzEbVivb4yugdh6YQ224a09hLeKX5npG4dTRZXuWDeYWAz3mFUw3FbVTZhGeUfV1JXEvj3J17aGxy78B3lBF2hq_fE3C1oHWYe7xXnBh6BiCzwMkdnICwudTsDpWIomXqWQItIlW2OGtTddIPfPyGbSvbEmJ9bsWhGSyg6FhM99g_mxlbCrHPseUBeMRJEGIVOXPDNulGDA1d9ik04o0UVdbmYYqdwhEVgWthlp5uvHONBkywfv2QtDJBosAh39Js6hBE9aAt1dU8ULmJl2HKPwe.FNkbyEg-- Received: from [122.169.215.58] by web31707.mail.mud.yahoo.com via HTTP; Fri, 29 Jan 2010 00:26:35 PST X-Mailer: YahooMailClassic/9.1.10 YahooMailWebService/0.8.100.260964 Date: Fri, 29 Jan 2010 00:26:35 -0800 (PST) From: Nishant Neeraj Subject: Re: Individual Object Caching To: user@cayenne.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1717924023-1264753595=:34657" --0-1717924023-1264753595=:34657 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable OK. So, even if a new query results in individual object cache to be flushe= d, we are still avoiding DB hits becasue we have query result cache in plac= e. Does query result cache gets individually flushed, or the only way is group= flush [1]? Actually, I want to cache User objects (or query results) forev= er. User object is retrieved when user logs in using an expression like "us= er_name=3D$name and password=3D$pwd". I want to make sure that whenever a u= ser updates his information the object and query result for that particular= user gets flushed, not all the users that were retrieved using "user_name= =3D$name and password=3D$pwd" expression. Please suggest. [1]http://cayenne.apache.org/doc/query-result-caching.html Regards Nishant --- On Thu, 28/1/10, Andrus Adamchik wrote: From: Andrus Adamchik Subject: Re: Individual Object Caching To: user@cayenne.apache.org Date: Thursday, 28 January, 2010, 3:36 PM Yes, a query refreshes cached objects (unless the query itself is served fr= om cache). Andrus On Jan 28, 2010, at 11:59 AM, Nishant Neeraj wrote: > Hi, >=20 > 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 >=20 >=0A loadMenu(){... > SelectQuery query =3D new SelectQuery(PaintingType.class, ...); > return (List)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 f= lushed and restores. >=20 > [1] http://cayenne.apache.org/doc/individual-object-caching.html >=20 > RegardsNishant >=20 >=20 >=A0 =A0 =A0 Your Mail works best with the New Yahoo Optimized IE8. Get it = NOW! http://downloads.yahoo.com/in/internetexplorer/ =0A=0A=0A Your Mail works best with the New Yahoo Optimized IE8. Get i= t NOW! http://downloads.yahoo.com/in/internetexplorer/ --0-1717924023-1264753595=:34657--