method_cache plugin
Do you have methods on your active record objects that are expensive to calculate? Want to cache the results and save yourself the cost of evaluation every time you invoke that method. Here is a plugin that helps you solve this problem easily.
Comments
Microsoft wants me to download some shit to post a comment, so i’ll just it here;)
Anyway, few weeks ago i posted to ruby-talk module that does almost the same thing, except it uses Memcache and allows to cache based on parameters passed to method, and sweep whole classes or only methods.
http://www.ruby-forum.com/topic/156534 here’s the link
Post a comment