Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 98799 invoked from network); 20 Oct 2004 11:06:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 20 Oct 2004 11:06:03 -0000 Received: (qmail 1458 invoked by uid 500); 20 Oct 2004 11:05:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 1385 invoked by uid 500); 20 Oct 2004 11:05:57 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 1360 invoked by uid 99); 20 Oct 2004 11:05:57 -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 [217.160.230.41] (HELO mout.perfora.net) (217.160.230.41) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Oct 2004 04:05:56 -0700 Received: from minotaur.apache.org[209.237.227.194] (helo=[127.0.0.1]) by mrelay.perfora.net with ESMTP (Nemesis), id 0MKyxe-1CKE2E034H-00074Y; Wed, 20 Oct 2004 06:49:38 -0400 X-Provags-ID: perfora.net abuse@perfora.net e2e4156964dfbcc4c642ec658fa7f9b9 Message-ID: <417642C0.3030708@reverycodes.com> Date: Wed, 20 Oct 2004 06:49:36 -0400 From: Vadim Gritsenko User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: FilesystemStore broken??? References: <0MKuxu-1CK9m622aK-0005GX@mx.perfora.net> In-Reply-To: <0MKuxu-1CK9m622aK-0005GX@mx.perfora.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Carsten Ziegeler wrote: > One addition: doing this would also mean that the cache doesn't > depend on excalibur store anymore... But: * Cache is "This component is responsible for storing and retrieving cached responses.", to quote the Javadoc. Store, OTOH, can be used by any component to store any data. * Cache accepts only CachedResponse. It won't be suitable for majority of components. * Cache does not have mechanism reacting on low memory (Janitor). * Cache has no TRANSIENT / PERSISTENT separation. We only recently had store clean up (thanks Sylvain) and even not all components yet migrated to using stores instead of static HashMaps. I feel it's more important to focus on components implementations clean up but not on yet another store mechanism re-write. Vadim >>The cache is an own component (called Cache) which has >>currently one default implementation that uses a Store >>(component). Now I think for such use cases a different Cache >>implementation is better. This implementation could directly >>"cache" the data without going via a store. >> >>Carsten