public
Description: Rack::Session, Rack::Cache and cache Redis stores for Ruby web frameworks
Homepage:
Clone URL: git://github.com/jodosha/redis-store.git
jodosha (author)
Thu Apr 30 01:36:03 -0700 2009
commit  4bd2df6642a631ecbd298662a053fa91f259a21e
tree    75bc6d8093b07faca51fb1feb567f41969145edb
parent  e1acb5ff2d31aff3634131770585f0316027bdb5
name age message
file .gitignore Wed Apr 15 12:49:10 -0700 2009 Added configuration for Redis cluster [jodosha]
file MIT-LICENSE Sat Apr 11 03:54:41 -0700 2009 Initial import [jodosha]
file README.textile Loading commit data...
file Rakefile
directory lib/
file redis-store.gemspec
directory spec/
README.textile

Redis cache and session stores for Ruby web frameworks

Installation

Download and install Redis from http://code.google.com/p/redis/

wget http://redis.googlecode.com/files/redis-0.094.tar.gz tar -zxvf redis-0.094.tar.gz cd redis-0.094 make

Install the gems

sudo gem install ezmobius-redis-rb -s http://gems.github.com sudo gem install jodosha-redis-store -s http://gems.github.com

How to use with Rails

In your configuration files:

config.gem “jodosha-redis-store”, :source => “http://gems.github.com”, :lib => “redis-store” require “redis-store” # HACK Rails tries to instantiate cache first, then load configured gems config.cache_store = :redis_store

How to use with Merb

dependency “redis-store”, “0.0.3” dependency(“merb-cache”, merb_gems_version) do Merb::Cache.setup do register(:redis, Merb::Cache::RedisStore, :servers => [“127.0.0.1:6379”]) end end

Copyright

© 2009 Luca Guidi – http://lucaguidi.com, released under the MIT license