May 20, 2007
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
Jul 04, 2007
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.