Browse files

document #method_cache_hash

  • Loading branch information...
1 parent 50fcb3a commit 75d8608268c2d90454ee0ec237a92af0285c8f1f @seamusabshere committed Mar 14, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.rdoc
@@ -82,6 +82,10 @@ Ideally, you should try to make a <tt>String</tt> or a <tt>Hash</tt> and call th
Note: this is NOT the same thing as <tt>#to_hash</tt>! That returns a <b><tt>Hash</tt></b>. What we want is an integer "hash code."
+== Using #method_cache_hash instead of #hash
+If you don't want to modify #hash, use #method_cache_hash instead.
== Rationale
* It should be easy to cache a method using memcached, dalli (if you're on heroku), redis, etc. (that's why I made the {cache gem}[])

0 comments on commit 75d8608

Please sign in to comment.