Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 18915 invoked from network); 28 Mar 2007 23:52:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Mar 2007 23:52:50 -0000 Received: (qmail 16614 invoked by uid 500); 28 Mar 2007 23:52:57 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 16338 invoked by uid 500); 28 Mar 2007 23:52:57 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 16323 invoked by uid 99); 28 Mar 2007 23:52:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 16:52:57 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FROM_EXCESS_QP,SUBJECT_EXCESS_QP X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [213.36.80.105] (HELO mail.libertysurf.net) (213.36.80.105) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2007 16:52:47 -0700 Received: from aliceadsl.fr (192.168.10.82) by mail.libertysurf.net (7.1.026) id 460094D90001AA9D for torque-user@db.apache.org; Thu, 29 Mar 2007 01:52:26 +0200 Date: Thu, 29 Mar 2007 01:52:26 +0200 Message-Id: Subject: =?iso-8859-1?Q?Re:_torque_and_caching?= MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "=?iso-8859-1?Q?thomas.ung@freesbee.fr?=" To: "=?iso-8859-1?Q?torque-user?=" X-XaM3-API-Version: 3.2 R18 (B34 pl1) X-type: 0 X-SenderIP: 88.161.198.36 X-Virus-Checked: Checked by ClamAV on apache.org Sorry I am not sure if this is doable ? I use method caching=0D=0Aand I a= m not sure if it is appropriate? =0D=0A=0D=0A---------- Initial Header --= ---------=0D=0ASubject : Re: torque and caching=0D=0A=0D=0AHi,=0D=0A=0D=0A= I have one last question about caching... Supposing that I=0D=0Ahave a ta= ble identified by a PK and an UniqueName. I need=0D=0Atwo mathods in the = cache manager to get the instance:=0D=0A - getInstance(Integer pk) is = out of the box: nothing to=0D=0Ado. great!=0D=0A - getInstanceByName(S= tring uniqueName) needs to be=0D=0Aimplemented:=0D=0A=0D=0A...=0D=0A Obje= ct obj =3D getMethodResult().get(OBJ.class,=0D=0A"getInstanceByName", nam= e );=0D=0A if( obj =3D=3D null ) {=0D=0A ...=0D=0A getMethodResult().put(= obj, OBJ.class, "getInstanceByName",=0D=0Aname );=0D=0A ...=0D=0A }=0D=0A= =0D=0ASupposing that getInstance(integer) and=0D=0AgetInstanceByName(uniq= ueName) got used in the same time. Do=0D=0Athey return the same instance?= or two different ones?=0D=0A=0D=0AThe reason of this question is to ensu= re the data consistancy.=0D=0A=0D=0AThank You again!=0D=0AThomas=0D=0A=0D= =0A=0D=0A=0D=0A------------------------ ALICE C'EST ENCORE MIEUX AVEC=0D=0A= CANAL+ LE BOUQUET ! ---------------=0D=0AD=E9couvrez vite l'offre exclusi= ve ALICEBOX et CANAL+ LE=0D=0ABOUQUET, en cliquant ici http://alicebox.fr= =0D=0ASoumis =E0 conditions.=0D=0A=0D=0A=0D=0A=0D=0A---------------------= ------------------------------------------------=0D=0ATo unsubscribe, e-m= ail: torque-user-unsubscribe@db.apache.org=0D=0AFor additional commands, = e-mail: torque-user-help@db.apache.org=0D=0A=0D=0A=0A=0A-----------------= ------- ALICE C'EST ENCORE MIEUX AVEC CANAL+ LE BOUQUET ! ---------------= =0AD=E9couvrez vite l'offre exclusive ALICEBOX et CANAL+ LE BOUQUET, en c= liquant ici http://alicebox.fr=0ASoumis =E0 conditions.=0A --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org