Redis stores for Rack::Cache
Ruby
Latest commit b0599ac Feb 23, 2017 @tubbo tubbo Fix broken tests
Permalink
Failed to load latest commit information.
lib
test Bump to v2.0.0 Nov 7, 2016
.gitignore Moved back from jodosha/redis-store Aug 23, 2013
.travis.yml ugh Nov 11, 2016
Gemfile
MIT-LICENSE Moved back from jodosha/redis-store Aug 23, 2013
README.md Maintainers have been found. Update README. Feb 2, 2016
Rakefile Moved back from jodosha/redis-store Aug 23, 2013
redis-rack-cache.gemspec

README.md

Redis stores for Rack::Cache

redis-rack-cache provides a Redis backed store for Rack::Cache, an HTTP cache. See the main redis-store readme for general guidelines.

Installation

# Gemfile
gem 'redis-rack-cache'

Usage

If you are using redis-store with Rails, consider using the redis-rails gem instead. For standalone usage:

# 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'

Running tests

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

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

Status

Gem Version Build Status Code Climate

Copyright

2009 - 2013 Luca Guidi - http://lucaguidi.com, released under the MIT license