aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorMatt Duncan <mrduncan@gmail.com>2011-04-13 20:17:22 -0400
committerMatt Duncan <mrduncan@gmail.com>2011-04-13 20:17:22 -0400
commit1447ff56545f53101c5fddbdea5667a8ff68cd8e (patch)
tree83119adb29b2f76bcce2189c13201804dfb55ff0 /railties
parentf8ecb46e82154979a548d36183b25375982aca08 (diff)
downloadrails-1447ff56545f53101c5fddbdea5667a8ff68cd8e.tar.gz
rails-1447ff56545f53101c5fddbdea5667a8ff68cd8e.tar.bz2
rails-1447ff56545f53101c5fddbdea5667a8ff68cd8e.zip
Making identifiers consistent in example
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/caching_with_rails.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/caching_with_rails.textile b/railties/guides/source/caching_with_rails.textile
index 297ba2d661..995a835ce8 100644
--- a/railties/guides/source/caching_with_rails.textile
+++ b/railties/guides/source/caching_with_rails.textile
@@ -322,7 +322,7 @@ You can use Hashes and Arrays of values as cache keys.
<ruby>
# This is a legal cache key
-Rails.cache.read(:site => "mysite", :owners => [owner_1, owner2])
+Rails.cache.read(:site => "mysite", :owners => [owner_1, owner_2])
</ruby>
The keys you use on +Rails.cache+ will not be the same as those actually used with the storage engine. They may be modified with a namespace or altered to fit technology backend constraints. This means, for instance, that you can't save values with +Rails.cache+ and then try to pull them out with the +memcache-client+ gem. However, you also don't need to worry about exceeding the memcached size limit or violating syntax rules.