Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 17975 invoked from network); 17 Jan 2006 13:16:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jan 2006 13:16:18 -0000 Received: (qmail 89148 invoked by uid 500); 17 Jan 2006 13:16:18 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 89031 invoked by uid 500); 17 Jan 2006 13:16:17 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 89020 invoked by uid 99); 17 Jan 2006 13:16:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 05:16:17 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_MESSAGE,MAILTO_TO_SPAM_ADDR,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mgorman@cbs.com designates 170.20.0.83 as permitted sender) Received: from [170.20.0.83] (HELO mail83.bc.fw.cbsig.net) (170.20.0.83) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Jan 2006 05:16:16 -0800 Received: (qmail 17759 invoked from network); 17 Jan 2006 13:15:06 -0000 Received: from unknown (HELO nychubg01.cbs.ad.cbs.net) (170.20.38.58) by mail1.cbs.com with SMTP; 17 Jan 2006 13:15:06 -0000 Received: by nychubg01.cbs.ad.cbs.net with Internet Mail Service (5.5.2658.27) id ; Tue, 17 Jan 2006 08:15:54 -0500 Message-ID: <4951493271A7E647A7F884B83132326104A5C7AD@NYBCNX03.cbs.ad.cbs.net> From: "Gorman, Mitch " To: JCS Users List Subject: RE: JCS Query Date: Tue, 17 Jan 2006 08:14:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2658.27) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C61B68.2429837D" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C61B68.2429837D Content-Type: text/plain How are you storing it into the cache? Are you doing something like: for (int x=0; x < 10; x++) { JCS.put("key", new Integer(x)); } Or are you doing: List l = new ArrayList(); for (int x=0; x<10; x++) { l.add(new Integer(x)); } JCS.put("key", l); If you want to cache a list... cache a list. Repeatedly storing values using the same key is only overwriting the value associated with that single key, in the cache. Keys must be unique. -----Original Message----- From: vivek dharuman [mailto:viveks08@rediffmail.com] Sent: Tuesday, January 17, 2006 4:50 AM To: jcs-users@jakarta.apache.org Subject: JCS Query Hi, We had initially planned for a custom caching for my project. Suddenly our client wants a standard tool for caching like JCS. We are nearing the project release. I am new to JCS and also due to time factor, we have no time to do R&D.I need some help regarding JCS. - I am caching three objects. - The first two are ok. Given a key, it'll return me a value for the key. - But the third cache contains many values for a single key. I mean , i want a list of values for a given key. How do i implement this with JCS. Tried using JCS.get()...but this gives me only one value for a key. I want the whole list. Could anyone help me out with the cache.ccf configuration. Could anyone explain with a complete example. Thanks in advance. Rgds, vivek ------_=_NextPart_001_01C61B68.2429837D--