Return-Path: Mailing-List: contact turbine-jcs-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list turbine-jcs-user@jakarta.apache.org Received: (qmail 35223 invoked from network); 11 Jul 2003 10:27:55 -0000 Received: from unknown (HELO server?mail) (212.27.163.200) by daedalus.apache.org with SMTP; 11 Jul 2003 10:27:55 -0000 Received: from [62.167.49.196] by server_mail.0041.com (NTMail 5.06.0016/PS0014.00.27786320) with ESMTP id dttycaaa for turbine-jcs-user@jakarta.apache.org; Fri, 11 Jul 2003 12:30:41 +0200 Message-ID: <007d01c34797$25c076f0$0a01a8c0@taino> Reply-To: "Fulco Houkes" From: "Fulco Houkes" To: "JCS user mailinglist" Subject: composite keys and cache entries keys retrieval Date: Fri, 11 Jul 2003 12:28:16 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_007A_01C347A7.E73EA9E0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------=_NextPart_000_007A_01C347A7.E73EA9E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, (Sorry for this cross-posting, I noticed I send it to the wrong mailing = list. My appologizes.) I'm try to use a composite key for all the cache entries; the composite = key is combination of a pageID and a username. I need to be able to = invalidate all the cache entries related to a specific pagesID as well = as all the cache entries related to a username independently. I tried to use groups for this purpose, but it seems the entries are = duplicated into the different groups, so it's not solving my problem. = I've been looking for using the ":" hierarchy features, but the = "very-light" documentation does present much on the subject, and I could = not remove entries using the pattern ":"+ myKey +":". As far as I = understood it, it's only possible to use this functionality with the = myKey+":" pattern. Finally I opted to retrieve all the cache entries keys and filter myself = the entries to be invalidated. But I could not found any method (from = the JCS class) returning a Set/Enumeration/... of keys of all the the = cache entries. The IMemoryCache interface has a getKeyArray() method, = which does the job, but this method is not used within the inherited = classes. Does anyone know how to retrieve the keys of all the entries present in = the cache, without having to change the source code?=20 Thanks a lot. Fulco Houkes ------=_NextPart_000_007A_01C347A7.E73EA9E0--