<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: An Introduction to Caching</title>
	<atom:link href="http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/</link>
	<description>Music, Politics and Code</description>
	<pubDate>Sat, 26 Jul 2008 02:59:29 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Stake Five :: Tangling with the Template Cache</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/#comment-7</link>
		<dc:creator>Stake Five :: Tangling with the Template Cache</dc:creator>
		<pubDate>Wed, 12 Jul 2006 12:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=27#comment-7</guid>
		<description>[...] The ColdFusion template cache is an interesting beast; one which taught me a great deal about caching. I&#8217;ll be discussing the design of the template cache in this post, along with the rationale behind the approach that was taken, and some explanation of interesting behaviours that the template cache exhibits. Before we venture further, please do read An Introduction to Caching - you&#8217;ll need that information to understand the rest of this post. [...]</description>
		<content:encoded><![CDATA[<p>[...] The ColdFusion template cache is an interesting beast; one which taught me a great deal about caching. I&#8217;ll be discussing the design of the template cache in this post, along with the rationale behind the approach that was taken, and some explanation of interesting behaviours that the template cache exhibits. Before we venture further, please do read An Introduction to Caching - you&#8217;ll need that information to understand the rest of this post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stake Five :: Memory-sensitive Caching for CF</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/#comment-6</link>
		<dc:creator>Stake Five :: Memory-sensitive Caching for CF</dc:creator>
		<pubDate>Sat, 01 Jul 2006 14:12:51 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=27#comment-6</guid>
		<description>[...] After my introduction to caching post, Doug Hughes asked whether it would be possible to wrap CFCs in soft references to create a memory-sensitive cache for use in CFML. I answered that it should, in theory, be possible, but that an implementation would have to take care of a few common design issues that occur when dealing with soft references. [...]</description>
		<content:encoded><![CDATA[<p>[...] After my introduction to caching post, Doug Hughes asked whether it would be possible to wrap CFCs in soft references to create a memory-sensitive cache for use in CFML. I answered that it should, in theory, be possible, but that an implementation would have to take care of a few common design issues that occur when dealing with soft references. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ashwin</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/#comment-5</link>
		<dc:creator>ashwin</dc:creator>
		<pubDate>Thu, 29 Jun 2006 17:10:33 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=27#comment-5</guid>
		<description>I don't see any reason why you wouldn't be able to wrap CFC instances in a SoftReference. However, doing this is not as simple as wrapping up the instances and sticking them in a struct - what can happen is that the value in the struct would get collected by the garbage collector, while the key would remain. You would need to build on top of the ReferenceQueue class in java.lang.ref to ensure that keys get cleared out as well. I'll try and throw a CFC together in the next day or two that'll function as a soft cache and post it back here.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t see any reason why you wouldn&#8217;t be able to wrap CFC instances in a SoftReference. However, doing this is not as simple as wrapping up the instances and sticking them in a struct - what can happen is that the value in the struct would get collected by the garbage collector, while the key would remain. You would need to build on top of the ReferenceQueue class in java.lang.ref to ensure that keys get cleared out as well. I&#8217;ll try and throw a CFC together in the next day or two that&#8217;ll function as a soft cache and post it back here.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Hughes</title>
		<link>http://blogs.sanmathi.org/ashwin/2006/06/27/an-introduction-to-caching/#comment-4</link>
		<dc:creator>Doug Hughes</dc:creator>
		<pubDate>Thu, 29 Jun 2006 12:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.sanmathi.org/ashwin/?p=27#comment-4</guid>
		<description>Just wondering, is there anyway to use soft reference from within CFML?  For example, let's say that I have a structure that I'm caching objects in.  What if I wanted the references in that object to be soft so that if Java needed to it could garbage collect them?  Essentially, I'm asking if I could create an instance of a Widget cfc and then pass that into a SoftReference and then put the soft reference in the struct?  Or, are there just too many references from CF objects to make that really work?

Thanks!</description>
		<content:encoded><![CDATA[<p>Just wondering, is there anyway to use soft reference from within CFML?  For example, let&#8217;s say that I have a structure that I&#8217;m caching objects in.  What if I wanted the references in that object to be soft so that if Java needed to it could garbage collect them?  Essentially, I&#8217;m asking if I could create an instance of a Widget cfc and then pass that into a SoftReference and then put the soft reference in the struct?  Or, are there just too many references from CF objects to make that really work?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
