aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/caching_with_rails.textile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2012-06-14 22:52:38 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2012-06-14 22:52:38 +0530
commitc1474ff2e78da7a3443c3eee470a1e9aa5b560dd (patch)
treed02393ca969e8ab612ab7e764f5504c34bd6da89 /guides/source/caching_with_rails.textile
parentf5e7cb84cd377feb1b60c5356ce02123e9c94380 (diff)
parent5795efa9d8c330853c9ce4507abc3d5b8baa65e1 (diff)
downloadrails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.tar.gz
rails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.tar.bz2
rails-c1474ff2e78da7a3443c3eee470a1e9aa5b560dd.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/caching_with_rails.textile')
-rw-r--r--guides/source/caching_with_rails.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/caching_with_rails.textile b/guides/source/caching_with_rails.textile
index 34a100cd3a..3ee36ae971 100644
--- a/guides/source/caching_with_rails.textile
+++ b/guides/source/caching_with_rails.textile
@@ -332,7 +332,7 @@ h4. ActiveSupport::Cache::MemoryStore
This cache store keeps entries in memory in the same Ruby process. The cache store has a bounded size specified by the +:size+ options to the initializer (default is 32Mb). When the cache exceeds the allotted size, a cleanup will occur and the least recently used entries will be removed.
<ruby>
-config.cache_store = :memory_store, :size => 64.megabytes
+config.cache_store = :memory_store, { :size => 64.megabytes }
</ruby>
If you're running multiple Ruby on Rails server processes (which is the case if you're using mongrel_cluster or Phusion Passenger), then your Rails server process instances won't be able to share cache data with each other. This cache store is not appropriate for large application deployments, but can work well for small, low traffic sites with only a couple of server processes or for development and test environments.