May 20, 2007

Posted by John

Tagged memcache, presentation, and railsconf

Older: Saturday: Keynotes

Newer: Saturday: Keynotes

Saturday: Memcaching Rails

memcaching rails
by chris wanstrath

memcache is just a hash. no each or keys. just set, get and delete.

you can cache fragments, actions, sessions and objects.

gem install memcache-client

cache-fu is an api around memcache client.

you can use namespaces to share memcache across rails apps.

use ip’s for config. faster because you don’t have to resolve dns.

anytime you do migrations you have to increment the acts_as_cache :version

libketama – from the last.fm guys, allows you to throw memcache servers in and out and not invalidate your keys

Chris did an amazing job which is why I don’t really have much for notes. :)

1 Comment

  1. From http://www.programmershaiku.com

    MemCache this MoFo
    I can serve Pages faster
    I make users smile

Sorry, comments are closed for this article to ease the burden of pruning spam.

About

Authored by John Nunemaker (Noo-neh-maker), a programmer who has fallen deeply in love with Ruby. Learn More.

Projects

Flipper
Release your software more often with fewer problems.
Flip your features.