Retriever

A block result caching library.

Installation

Either include to your Gemfile or install it.

# Bash
$ gem install retriever

# Gemfile
gem 'retriever'

Rails Usage

Create file config/initializer/retriever.rb with your configuration.

Example retriever.rb

Retriever.config.storage(:memory)
Retreiver.catch! do
 target :bone do |parameters|
   ...
 end
end

Example Usage (Controller)

def index
 @bone = Retriever.fetch(:bone)
end

Documentation

License

Copyright (c) 2011 Nelvin Driz.

Retriever is free software released under the MIT license.