<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,5 +8,6 @@ Console Commands
   Rails.cache.write('date', Date.today)
   Rails.cache.read('date')
   Rails.cache.fetch('time') { Time.now }
+  cache = ActiveSupport::Cache.lookup_store(:mem_cache_store)
   product = Product.first
   product.cache_key</diff>
      <filename>episode-115/README</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,7 @@
 class Category &lt; ActiveRecord::Base
   has_many :products
+  
+  def self.all_cached
+    Rails.cache.fetch('Category.all') { all }
+  end
 end</diff>
      <filename>episode-115/store/app/models/category.rb</filename>
    </modified>
    <modified>
      <diff>@@ -12,11 +12,15 @@ config.action_controller.consider_all_requests_local = false
 config.action_controller.perform_caching             = true
 config.action_view.cache_template_loading            = true
 
-# Use a different cache store in production
-# config.cache_store = :mem_cache_store
-
 # Enable serving of images, stylesheets, and javascripts from an asset server
 # config.action_controller.asset_host                  = &quot;http://assets.example.com&quot;
 
 # Disable delivery errors, bad email addresses will be ignored
 # config.action_mailer.raise_delivery_errors = false
+
+# Use a different cache store in production
+# config.cache_store = :memory_store
+# config.cache_store = :file_store, '/path/to/cache'
+# config.cache_store = :mem_cache_store
+# config.cache_store = :mem_cache_store, :namespace =&gt; 'storeapp'
+# config.cache_store = :mem_cache_store, '123.456.78.9:1001', '123.456.78.9:1002'</diff>
      <filename>episode-115/store/config/environments/production.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>episode-115/store/log/development.log</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>f94e8b926121aee90f262a790271897d170ec769</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Bates</name>
    <email>ryan@railscasts.com</email>
  </author>
  <url>http://github.com/ryanb/railscasts-episodes/commit/665310f5e32cde1d229bc0d7a97daba1e31188a9</url>
  <id>665310f5e32cde1d229bc0d7a97daba1e31188a9</id>
  <committed-date>2008-06-22T11:33:36-07:00</committed-date>
  <authored-date>2008-06-22T11:33:36-07:00</authored-date>
  <message>finishing episode 115</message>
  <tree>5553f3ff295e3c8963d9e2eae46464f9d58a985a</tree>
  <committer>
    <name>Ryan Bates</name>
    <email>ryan@railscasts.com</email>
  </committer>
</commit>
