Skip to content
Browse files

Add a little ditty to the README about how to use APICache with Heroku.

  • Loading branch information...
1 parent be2c4ee commit 8626c6ef1960913bb7a866872d3be6d06904788e @benpickles benpickles committed Mar 24, 2011
Showing with 9 additions and 0 deletions.
  1. +9 −0 README.md
View
9 README.md
@@ -25,6 +25,15 @@ APICache allows any API client library to be easily wrapped with a robust cachin
FlickrRb.get_all_sets
end
+## Heroku + memcache
+
+Heroku memcache add-on users can use APICache with the [Dalli](https://github.com/mperham/dalli) gem, no manual configuration is required as Dalli automatically picks up the appropriate environment variables.
+
+ require 'api_cache'
+ require 'dalli'
+
+ APICache.store = APICache::DalliStore.new(Dalli::Client.new)
+
## The longer version
You want to use the Twitter API but you don't want to die?

0 comments on commit 8626c6e

Please sign in to comment.
Something went wrong with that request. Please try again.