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

Thoughts? Do Tell...


textile enabled, preview above, please be nice
use <pre><code class="ruby"></code></pre> for code blocks

About

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

Syndication

Feed IconRailsTips Articles - An assortment of howto's and thoughts on Ruby and Rails.

Feed IconRails Quick Tips - Ruby and Rails related links.