README.rdoc in lawnchair-0.3.0 vs README.rdoc in lawnchair-0.3.1

- old
+ new

@@ -1,9 +1,14 @@ = Lawnchair Very simple caching mechanism for arbitrary pieces of ruby code using Redis as the distributed (or local) cache +== Prerequisites +http://code.google.com/p/redis/ +and +http://github.com/ezmobius/redis-rb/ + == Usage Examples All you really need to do is wrap some expensive piece of Ruby code in the Lawnchair::Cache.me method as a block and it will be evaluated and the return value will cached in the given cache key. @@ -30,10 +35,10 @@ ["12:26:08", "12:26:09", "12:26:10"] Now, since it is cached, any time this block method is called (for the next 60 minute) it will return those values. also, you will note it comes back instantly, instead of waiting on those sleeps. -If an hour is too long, or short for the cache key expiration you can set that to anything you want using the :expires_in hash key and entering a time in milliseconds +If an hour is too long, or short for the cache key expiration you can set that to anything you want using the :expires_in hash key and entering a time in seconds Lawnchair::Cache.me(:key => "contrived_example", :expires_in => 1.day) do # expensive code to be cached for 24 hours end