Cache Fu

A plugin which allows you to cache any Ruby object with memcached

Author: Chris Wanstrath

Installation:

ruby script/plugin install svn://errtheblog.com/svn/plugins/cache_fu

Example use:


class Post < ActiveRecord:Base
   acts_as_cached
   def latest()
       self.find(:all, :order=>'id desc', :limit=>1)
   end
end

Post.cached(:latest)