From 54f4be83035bba1e2f1ec44334efff7d7a6cb4fe Mon Sep 17 00:00:00 2001 From: Aditya Date: Sun, 23 Nov 2008 14:09:36 -0500 Subject: Add config.cache_store blurb and note about Rails using the bundled memcached-client gem --- railties/doc/guides/source/caching_with_rails.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/railties/doc/guides/source/caching_with_rails.txt b/railties/doc/guides/source/caching_with_rails.txt index 7a4074570e..e29156d4e7 100644 --- a/railties/doc/guides/source/caching_with_rails.txt +++ b/railties/doc/guides/source/caching_with_rails.txt @@ -340,8 +340,7 @@ ActionController::Base.cache_store = :drb_store, "druby://localhost:9192" ----------------------------------------------------- 4) MemCached store: Works like DRbStore, but uses Danga's MemCache instead. - Requires the ruby-memcache library: - gem install ruby-memcache. + Rails uses the bundled memcached-client gem by default. [source, ruby] ----------------------------------------------------- @@ -355,6 +354,10 @@ ActionController::Base.cache_store = :mem_cache_store, "localhost" ActionController::Base.cache_store = MyOwnStore.new("parameter") ----------------------------------------------------- ++Note: config.cache_store can be used in place of +ActionController::Base.cache_store in your Rails::Initializer.run block in +environment.rb+ + == Advanced Caching Along with the built-in mechanisms outlined above, a number of excellent -- cgit v1.2.3