Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Redis stores for Rack::Cache

redis-rack-cache provides a Redis backed store for Rack::Cache. It natively supports object marshalling, timeouts, single or multiple nodes and namespaces.

Redis Installation

Option 1: Homebrew

MacOS X users should use Homebrew to install Redis:

brew install redis

Option 2: From Source

Download and install Redis from

tar -zxf redis-2.4.15.tar.gz
mv redis-2.4.15 redis
cd redis


# Gemfile
gem 'redis-rack-cache'

HTTP Cache Store:

require 'rack'
require 'rack/cache'
require 'redis-rack-cache'

use Rack::Cache,
  :metastore   => 'redis://localhost:6379/0/metastore',
  :entitystore => 'redis://localhost:6380/0/entitystore'


For advanced configuration options, please check the Redis Store Wiki.

Running tests

git clone git://
cd redis-store/redis-rack-cache
gem install bundler
bundle exec rake

If you are on Snow Leopard you have to run env ARCHFLAGS="-arch x86_64" bundle exec rake


(c) 2009 - 2011 Luca Guidi -, released under the MIT license

Something went wrong with that request. Please try again.