Post by Peter Cooper on September 17th, 2006
acts_as_cached: Easy caching for ActiveRecord

- The Best Ruby on Rails Page Caching Tutorial Yet
- Speed up your Rails database requests with memcached
- 9 Great Ruby Libraries from Robot Co-op



acts_as_cached is a plugin by Chris Wanstrath, Tim Myrtle, and PJ Hyett that simply allows you to cache any Ruby object in memory (using memcached). Check out the documentation for the full instructions, but if you've got a working memcached server ready and waiting, it's as easy as installing a gem (memcached-client), a plugin (acts_as_cached), and adding 'acts_as_cached' to your model.
Chris gives a full run down of acts_as_cached in this blog post, and also links to a great PDF presentation about the plugin.

Click here to add on del.icio.us









September 18th, 2006 at 7:21 am
Thanks for the tip. I can certainly use this.
September 20th, 2006 at 1:07 pm
acts_as_cached: Easy caching for ActiveRecord
acts_as_cached is a plugin by Chris Wanstrath, Tim Myrtle, and PJ Hyett that simply allows you to cache any Ruby object in memory (using memcached). Check out the documentation for the full instructions, but if you've got a working memcached server re...