Skip to content

Keoven/Retriever

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Retriever allows caching of the result of a block. It currently supports ruby memory storage and redis.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages