<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: I Had a Doubt (About CFGroovy2 and Ehcache)</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/11/19/i-had-a-doubt-about-cfgroovy2-and-ehcache/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2009/11/19/i-had-a-doubt-about-cfgroovy2-and-ehcache/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2009/11/19/i-had-a-doubt-about-cfgroovy2-and-ehcache/comment-page-1/#comment-196724</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 20 Nov 2009 07:16:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1151#comment-196724</guid>
		<description>Complexity, primarily, particularly around tuning.  The HashMap/WeakReference cache is simple, auto-tuning, and has no external dependencies.  Ehcache is more complex, must be explicitly tuned, and obviously has an external dependency (though one satisfied out of the box by CF9 and Railo 3.1).

I&#039;d hard coded configuration for Ehcache within script.cfm, and that worked for me, but not necessarily for you.  I could have expanded it to look for a pre-configured cache (in ehcache.xml) with a known name before creating the default, and/or provided a means of customizing the one it created, but that adds complexity to a deliberately simple &quot;framework&quot; that I didn&#039;t feel was justified.  Couple that with the inflexibility of a hard coded configuration, and I just don&#039;t think it&#039;s the right choice.

If you want to use Ehcache (or any other caching mechanism) with CFGroovy2, it&#039;s not hard to implement.  The whole &quot;framework&quot; is like 100 lines of CFML, and caching is maybe 10 of them.  I think it&#039;s better left to people who need a specific solution to provide one, rather than me trying to shoehorn a flexible solution into a space that doesn&#039;t need one and will potentially suffer from that shoehorning.</description>
		<content:encoded><![CDATA[<p>Complexity, primarily, particularly around tuning.  The HashMap/WeakReference cache is simple, auto-tuning, and has no external dependencies.  Ehcache is more complex, must be explicitly tuned, and obviously has an external dependency (though one satisfied out of the box by CF9 and Railo 3.1).</p>
<p>I'd hard coded configuration for Ehcache within script.cfm, and that worked for me, but not necessarily for you.  I could have expanded it to look for a pre-configured cache (in ehcache.xml) with a known name before creating the default, and/or provided a means of customizing the one it created, but that adds complexity to a deliberately simple "framework" that I didn't feel was justified.  Couple that with the inflexibility of a hard coded configuration, and I just don't think it's the right choice.</p>
<p>If you want to use Ehcache (or any other caching mechanism) with CFGroovy2, it's not hard to implement.  The whole "framework" is like 100 lines of CFML, and caching is maybe 10 of them.  I think it's better left to people who need a specific solution to provide one, rather than me trying to shoehorn a flexible solution into a space that doesn't need one and will potentially suffer from that shoehorning.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Brunt</title>
		<link>https://www.barneyb.com/barneyblog/2009/11/19/i-had-a-doubt-about-cfgroovy2-and-ehcache/comment-page-1/#comment-196714</link>
		<dc:creator>Mike Brunt</dc:creator>
		<pubDate>Fri, 20 Nov 2009 04:48:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1151#comment-196714</guid>
		<description>Barney, would you expand on the reason you removed ehcache?</description>
		<content:encoded><![CDATA[<p>Barney, would you expand on the reason you removed ehcache?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
