Project

retriever

0.0
No commit activity in last 3 years
No release in over 3 years
Retriever allows caching of the result of a block. It currently supports ruby memory storage and redis.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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

License¶ ↑

Copyright © 2011 Nelvin Driz.

Retriever is free software released under the MIT license.