Session

Memcaching Rails

Chris Wanstrath, Software Engineer, CNET Networks

Date: Saturday, May 19
Time: 11:45am - 12:35pm
Location: Oregon Ballroom 202

Memcached is a distributed, in-memory caching daemon used by high-traffic sites such as Slashdot, Wikipedia, Facebook, and Digg to alleviate processor and database stress. Rails natively supports using memcached as a session and page fragment store, but what if you want to do more? Find out how Chowhound and Chow.com use memcached with Rails, and learn some tricks picked up over the course of a year spent working on GameSpot's caching system.

Topics covered:

  • Using memcached for sessions
  • Using memcached for fragment caching
  • Using the acts_as_cached Rails plugin to cache AR models
  • Deploying memcached with Capistrano and Monit
  • What and where to cache
  • Maintaining cache integrity
  • Tips, tricks, and gotchas
  • Monitoring memcached
Conference News and Coverage