Kickin' Ass with Cache-Fu (without notes)

11,154 views
10,582 views

Published on

My memcached talk at RailsConf 2007 (without notes). See the blog post: http://errtheblog.com/post/4872

Published in: Technology, Design
4 Comments
10 Likes
Statistics
Notes
No Downloads
Views
Total views
11,154
On SlideShare
0
From Embeds
0
Number of Embeds
64
Actions
Shares
0
Downloads
243
Comments
4
Likes
10
Embeds 0
No embeds

No notes for slide

Kickin' Ass with Cache-Fu (without notes)

  1. CHRIS WANSTRATH ERR FREE [ http://errfree.com ]
  2. 50,000,000 pages no downtime
  3. memcached.
  4. Memcaching Rails CHRIS WANSTRATH ERR FREE [ http://errfree.com ]
  5. Memcaching Rails CHRIS WANSTRATH ERR FREE [ http://errfree.com ]
  6. chris wanstrath railsconf 2007 kickin’ ass with cache-fu
  7. {}
  8. class Memcache < Hash undef :each, :keys end
  9. class Memcache < DRbHash undef :each, :keys end
  10. $ memcached -vv <3 server listening <7 new client connection <7 get app-test:Story:1 >7 END <7 set app-test:Story:2 0 >7 STORED <7 delete app-test:Story:1 >7 DELETED
  11. $ memcached -vv <3 server listening <7 new client connection <7 get app-test:Story:1 >7 END <7 set app-test:Story:2 0 >7 STORED <7 delete app-test:Story:1 >7 DELETED
  12. YAGNI
  13. UYRDNI
  14. UYRDNI (unless you really do need it)
  15. class Presentation < ActiveRecord::Base def self.get_cache(id) if data = @cache.get(id) data

×