-
Install RedisDownload and build from scratch:
$ wget http://redis.googlecode.com/files/redis-2.2.12.tar.gz $ tar xzf redis-2.2.12.tar.gz $ cd redis-2.2.12 $ makeInstall the gemOn *NIX you may need to
sudo:$ gem install redis-store -

You can specify the Redis configuration details using a URI or a hash. By default the gem will attempt to connect to
localhostport6379and the db0.URI usageFor example
"redis://:secret@192.168.1.100:23682/13/theplaylist"Made up of the following:
host: 192.168.1.100 port: 23682 db: 13 namespace: theplaylist password: secret -

Provides a cache store for your Ruby web framework of choice.
Rails 3.x# Gemfile gem 'redis' gem 'redis-store', '1.0.0.rc1' # config/environments/production.rb config.cache_store = :redis_store, { ... optional configuration ... } -

Provides a Redis store for Rack::Session.
Rack applicationrequire "rack" require "redis-store" require "application" use Rack::Session::Redis run Application.new -

Provides a Redis store for HTTP caching.
Rack applicationrequire "rack" require "rack/cache" require "redis-store" require "application" use Rack::Cache, :metastore => 'redis://localhost:6379/0/metastore', :entitystore => 'redis://localhost:6380/0/entitystore' run Application.new -

The backend accepts the uri string and hash options.
require "i18n" require "redis-store" I18n.backend = I18n::Backend::Redis.new

