Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 33503 invoked from network); 4 Sep 2008 20:46:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2008 20:46:28 -0000 Received: (qmail 82661 invoked by uid 500); 4 Sep 2008 20:46:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 82651 invoked by uid 500); 4 Sep 2008 20:46:22 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 82640 invoked by uid 99); 4 Sep 2008 20:46:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 13:46:22 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 20:45:24 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KbLiE-00009M-Q4 for user-java@ibatis.apache.org; Thu, 04 Sep 2008 13:45:54 -0700 Message-ID: <19319593.post@talk.nabble.com> Date: Thu, 4 Sep 2008 13:45:54 -0700 (PDT) From: zeppelin To: user-java@ibatis.apache.org Subject: Re: using java SortedSet instead of List for the resultMap In-Reply-To: <16178eb10809040913i16a05a2bn54d8fee5cb389a01@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: shantanu.u@gmail.com References: <19310126.post@talk.nabble.com> <16178eb10809040748l4e8a2b46t5883e0026357c9a6@mail.gmail.com> <19313314.post@talk.nabble.com> <16178eb10809040913i16a05a2bn54d8fee5cb389a01@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ' In a nutshell, cache lists, don't cache individual objects...' - a little confusing If I'm ONLY caching a list, the size I need is only 1. Right ? If I decide to cache another object (POJO) and use the same cacheModel id (lruCache), I would need to change the size ( size="2" ) and the LRU algorithm will take care of expelling either of the two objects (POJO and list). Is this correct ? Sorry if all this has been answered before. I read the pdf a while back and still have some questions on caching. -- View this message in context: http://www.nabble.com/using-java-SortedSet-instead-of-List-for-the-resultMap-tp19310126p19319593.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com.