RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in