Return-Path: Delivered-To: apmail-jakarta-jcs-dev-archive@www.apache.org Received: (qmail 91295 invoked from network); 1 Aug 2008 20:48:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2008 20:48:22 -0000 Received: (qmail 25510 invoked by uid 500); 1 Aug 2008 20:48:21 -0000 Delivered-To: apmail-jakarta-jcs-dev-archive@jakarta.apache.org Received: (qmail 25497 invoked by uid 500); 1 Aug 2008 20:48:21 -0000 Mailing-List: contact jcs-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Developers List" Delivered-To: mailing list jcs-dev@jakarta.apache.org Received: (qmail 25486 invoked by uid 99); 1 Aug 2008 20:48:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 13:48:21 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Aug 2008 20:47:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AFA49234C194 for ; Fri, 1 Aug 2008 13:47:31 -0700 (PDT) Message-ID: <338514947.1217623651718.JavaMail.jira@brutus> Date: Fri, 1 Aug 2008 13:47:31 -0700 (PDT) From: "Aaron Smuts (JIRA)" To: jcs-dev@jakarta.apache.org Subject: [jira] Commented: (JCS-43) 3 new eviction policies In-Reply-To: <347441140.1213104525177.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCS-43?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619124#action_12619124 ] Aaron Smuts commented on JCS-43: -------------------------------- The priority list throw a null pointer exception if you remove an element that isn't present. That's not good. A one line unit test exposed this. > 3 new eviction policies > ----------------------- > > Key: JCS-43 > URL: https://issues.apache.org/jira/browse/JCS-43 > Project: JCS > Issue Type: Improvement > Components: Composite Cache > Affects Versions: jcs-1.3 > Reporter: Maxim Gordienko > Assignee: Aaron Smuts > Attachments: expiration-strategies.patch > > > Patch attached to this issue contains three new eviction policies: > LFU - least frequently used item is removed on cache overflow > FIFO - the oldest item is removed > Expire - item with closest expiration time is removed > also patch refactors MemoryCache hierarchy to allow easier extension -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-dev-help@jakarta.apache.org