Post by Peter Cooper on September 17th, 2006

acts_as_cached: Easy caching for ActiveRecord

Actsascachedshot
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.

[Post to Twitter] Tweet This

2 Responses to “acts_as_cached: Easy caching for ActiveRecord”

  1. #1
    Martijn Says:

    Thanks for the tip. I can certainly use this.

  2. #2
    Anonymous Says:

    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...