Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 58771 invoked from network); 18 Jun 2006 17:50:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jun 2006 17:50:41 -0000 Received: (qmail 94053 invoked by uid 500); 18 Jun 2006 17:50:41 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 94033 invoked by uid 500); 18 Jun 2006 17:50:40 -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 94021 invoked by uid 99); 18 Jun 2006 17:50:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Jun 2006 10:50:40 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [68.142.229.95] (HELO smtp110.sbc.mail.re2.yahoo.com) (68.142.229.95) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 18 Jun 2006 10:50:38 -0700 Received: (qmail 45411 invoked from network); 18 Jun 2006 17:50:16 -0000 Received: from unknown (HELO ?192.168.1.101?) (lhing@snet.net@64.252.91.6 with plain) by smtp110.sbc.mail.re2.yahoo.com with SMTP; 18 Jun 2006 17:50:16 -0000 Message-ID: <44959253.6080100@aya.yale.edu> Date: Sun, 18 Jun 2006 13:50:11 -0400 From: Peter Snow User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060430 X-Accept-Language: en-us, en MIME-Version: 1.0 To: JCS Users List Subject: Re: Storing objects in the disk cache References: <4494F59F.6000105@aya.yale.edu> In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Al, Thanks. Answers my question. Thanks for pointing me in the right direction (and taking the time to write it - if you are the author). Peter Alistair Forbes wrote: > Hi, > > Have a look at http://sindome.org/JCS/JCSRemoteCacheHowTo.doc . The last > part of the document describes what happens. > > Regards > Al > > On 6/18/06, Peter Snow wrote: > >> >> Hi, >> >> I have a question about how the disk cache stores objects. >> >> Suppose I have two caches - one for Book objects and one for Bookcase >> objects. Bookcase objects can contain collections of Books. >> >> Presumably, in a MemoryCache what are stored are references to objects >> on the heap. So, in the Book cache, the values in the cache are pointers >> to the memory addresses of the actual Book objects sitting out on the >> heap. The Bookcase cache would work the same way. If a Bookcase object >> contained some Book objects that also happened to be in the Book cache >> as well, the cache for this Bookcase object would contain references to >> the same Book memory addresses on the heap. In other words, we wouldn't >> have duplicates of the same Book objects in both caches, only duplicates >> of their references or pointers. >> >> Now if the contents of both caches get serialized to the same disk cache >> will we have a similar "duplicate-free" storage of each cache's object >> graph? Will Books contained by a Bookcase object be simply be pointers >> to the same Book addresses that are in the serialized Book cache? Or >> will the contents of the Bookcase cache and the Book cache be >> independent of one another? In other words, would it be possible to have >> duplicates of a particular Book in the disk cache? >> >> Thanks for any insight. >> >> --------------------------------------------------------------------- >> 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