aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAditya <aditya@sublucid.com>2008-11-23 14:09:36 -0500
committerAditya <aditya@sublucid.com>2008-11-23 14:09:36 -0500
commit54f4be83035bba1e2f1ec44334efff7d7a6cb4fe (patch)
treeae4245a44e17141947c9e08a11861997e812bb06
parent6e6c0f37ff25d0f7037f23ae7bd25d47c5bf6448 (diff)
downloadrails-54f4be83035bba1e2f1ec44334efff7d7a6cb4fe.tar.gz
rails-54f4be83035bba1e2f1ec44334efff7d7a6cb4fe.tar.bz2
rails-54f4be83035bba1e2f1ec44334efff7d7a6cb4fe.zip
Add config.cache_store blurb and note about Rails using the bundled memcached-client gem
-rw-r--r--railties/doc/guides/source/caching_with_rails.txt7
1 files 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