Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 59976 invoked from network); 10 Apr 2007 12:05:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2007 12:05:40 -0000 Received: (qmail 71421 invoked by uid 500); 10 Apr 2007 12:05:46 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 71396 invoked by uid 500); 10 Apr 2007 12:05:45 -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 71385 invoked by uid 99); 10 Apr 2007 12:05:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [85.119.101.20] (HELO switchfire.com) (85.119.101.20) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Apr 2007 05:05:45 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: Iterating Date: Tue, 10 Apr 2007 13:04:41 +0100 Message-ID: <96B95FCD2B0CEE4EB2D0A64DB6164340D910DF@sbssrvr1.Switchfire.local> In-Reply-To: <46164836.6050906@loki.ws> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Iterating thread-index: Acd4Td/KB7XnrXKeSRKDebrTan8FWgDGXHew From: "Zsolt Varszegi" To: "JCS Users List" X-Virus-Checked: Checked by ClamAV on apache.org Hi, JCS supports the concept of groups within a region, it is able to retrieve a Set of the keys of cached objects belonging to a group for example. (The user manual does not say too much about this functionality but you could check out the API of org.apache.jcs.access.GroupCacheAccess.) One solution could be to put every object you need to iterate through within the same group. Hope this helps, Zsolt -----Original Message----- From: Joshua Szmajda [mailto:josh@loki.ws]=20 Sent: 06 April 2007 13:17 To: jcs-users@jakarta.apache.org Subject: Iterating Hi, I'm using JCS to replace my current cache system for a webapp, and I need to be able to iterate through at least one region of the cache in order to mimic the ServletContext's functionality. Is this possible?=20 I've been searching the mailing list archives and the API docs and haven't found anything. If this isn't possible, is there a good way to do this? I was thinking I'd just put an ArrayList in the cache with all the keys to the cached elements in it. Thanks! -Joshua Szmajda --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org