Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

acts_as_cached: Easy caching for ActiveRecord

By Peter Cooper / September 17, 2006

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.

Comments

  1. Martijn says:

    Thanks for the tip. I can certainly use this.

  2. Pingback: Anonymous

Other Posts to Enjoy

Twitter Mentions