<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>eventually consistent &#187; memcached</title>
	<atom:link href="http://eventuallyconsistent.com/blog/tag/memcached/feed/" rel="self" type="application/rss+xml" />
	<link>http://eventuallyconsistent.com/blog</link>
	<description>technology, software development and entrepreneurship</description>
	<lastBuildDate>Thu, 11 Jun 2009 04:46:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Rails MemCacheStore Fu</title>
		<link>http://eventuallyconsistent.com/blog/2009/06/rails-memcachestore-fu/</link>
		<comments>http://eventuallyconsistent.com/blog/2009/06/rails-memcachestore-fu/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 04:46:12 +0000</pubDate>
		<dc:creator>colin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://eventuallyconsistent.com/blog/?p=133</guid>
		<description><![CDATA[Or how to use the latest memcache-client (1.7.4 as of this writing) over the vendored copy in Rails and control the MemCacheStore initialization using the cache_fu/act_as_cached memcached.yml config file.

 get Mike Perham&#8217;s latest memcache-client on github or simply:
sudo gem install memcache-client
make sure to remove any other memcache-client gems from your system.

 follow Mike&#8217;s instructions to [...]]]></description>
			<content:encoded><![CDATA[<p>Or how to use the <a href="http://github.com/mperham/memcache-client/" title="mperham memcache-client on github" onclick="javascript:pageTracker._trackPageview ('/outbound/github.com');">latest memcache-client</a> (1.7.4 as of this writing) over the vendored copy in Rails and control the MemCacheStore initialization using the cache_fu/act_as_cached memcached.yml config file.</p>
<ol>
<li> get <a href="http://www.mikeperham.com/" title="Mike Perham" onclick="javascript:pageTracker._trackPageview ('/outbound/www.mikeperham.com');">Mike Perham</a>&#8217;s <a href="http://github.com/mperham/memcache-client/" title="mperham memcache-client on github" onclick="javascript:pageTracker._trackPageview ('/outbound/github.com');">latest memcache-client on github</a> or simply:
<pre><code>sudo gem install memcache-client</code></pre>
<p>make sure to remove any other memcache-client gems from your system.
</li>
<li> follow <a href="http://www.mikeperham.com/2009/03/03/using-memcache-client-16x-in-rails-23/" title="override ActiveSupport memcache-client" onclick="javascript:pageTracker._trackPageview ('/outbound/www.mikeperham.com');">Mike&#8217;s instructions</a> to performs brain surgery on the Ruby environment to override ActiveSupport memcache-client</li>
<li>to control the MemCacheStore initialization using the options in your memcached.yml file, grab my <a href="http://github.com/colinsurprenant/memcached-config/" title="colinsurprenant memcached-config on github" onclick="javascript:pageTracker._trackPageview ('/outbound/github.com');">memcached-config code from github</a></li>
<li>include the following code in your environments/*.rb files:
<pre><code>
unless (memcached_config = MemcachedConfig.new).disabled?
  memcached_options = memcached_config.options
  config.cache_store = :mem_cache_store, memcached_options.delete(:servers), memcached_options
end
</code></pre>
</li>
</ol>
<p>By using MemcachedConfig this way, all the recognized options by memcache-client in your memcached.yml config file, such as :namespace, will be used. You can also add specific memcache-client options such as :failover or :timeout in you memcached.yml.</p>
]]></content:encoded>
			<wfw:commentRss>http://eventuallyconsistent.com/blog/2009/06/rails-memcachestore-fu/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
