Skip to content

Instantly share code, notes, and snippets.

@ramieblatt
ramieblatt / httparty_icebox.rb
Created April 9, 2010 22:30 — forked from karmi/httparty_icebox.rb
Fixed a few issues I came across and added a Memcached (from the gem) wrapper class for the AbstractStore
# = Icebox : Caching for HTTParty
#
# Cache responses in HTTParty models [http://github.com/jnunemaker/httparty]
#
# === Usage
#
# class Foo
# include HTTParty
# include HTTParty::Icebox
# cache :store => 'file', :timeout => 600, :location => MY_APP_ROOT.join('tmp', 'cache')