Skip to content
Use Moneta to provide get_and_set method and compressed feature.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
LICENSE
README

README

handcache use Moneta(http://github.com/wycats/moneta) to provide get_and_set method and compressed feature.

== USAGE

Moneta provide many stores, for example:

Add below line to your environment.rb

CacheStore = Moneta::Memory.new

or

CacheStore = Moneta::Memcache.new( :server => "127.0.0.1" )

Then in your code:

data = Handcache.get_and_set("data-123", :expires_in => 60 ) do
          "cached-foobar"
       end
Something went wrong with that request. Please try again.