Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add config.cache_store blurb and note about Rails using the bundled m…

…emcached-client gem
  • Loading branch information...
commit 54f4be83035bba1e2f1ec44334efff7d7a6cb4fe 1 parent 6e6c0f3
@aditya aditya authored
Showing with 5 additions and 2 deletions.
  1. +5 −2 railties/doc/guides/source/caching_with_rails.txt
View
7 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
Please sign in to comment.
Something went wrong with that request. Please try again.