Sha256: 6191e6a98401a467c7f1a6604280aa028d62c6a42e9f943836bfa8ba121c0574
Contents?: true
Size: 1.38 KB
Versions: 5
Compression:
Stored size: 1.38 KB
Contents
# 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](https://github.com/mxcl/homebrew) to install Redis: brew install redis ### Option 2: From Source Download and install Redis from [http://redis.io](http://redis.io/) wget http://redis.googlecode.com/files/redis-2.4.5.tar.gz tar -zxf redis-2.4.5.tar.gz mv redis-2.4.5 redis cd redis make ## Usage # Gemfile gem 'redis-rack-cache' ### HTTP Cache Store: # config.ru require 'rack' require 'rack/cache' require 'redis-rack-cache' use Rack::Cache, :metastore => 'redis://localhost:6379/0/metastore', :entitystore => 'redis://localhost:6380/0/entitystore' #### Configuration For advanced configuration options, please check the [Redis Store Wiki](https://github.com/jodosha/redis-store/wiki). ## Running tests git clone git://github.com/jodosha/redis-store.git cd redis-store/redis-rack-cache gem install bundler --pre # required version: 1.1.rc bundle exec rake If you are on **Snow Leopard** you have to run `env ARCHFLAGS="-arch x86_64" bundle exec rake` ## Copyright (c) 2009 - 2011 Luca Guidi - [http://lucaguidi.com](http://lucaguidi.com), released under the MIT license
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
redis-rack-cache-1.2 | README.md |
redis-rack-cache-1.1 | README.md |
redis-rack-cache-1.1.rc3 | README.md |
redis-rack-cache-1.1.rc2 | README.md |
redis-rack-cache-1.1.rc | README.md |