Redis stores for ActiveSupport
Ruby Logos
Latest commit dacb6b6 Jan 6, 2018
tubbo Merge pull request #91 from ignatiusreza/nil/dup
fix regression: redis_store.rb:38:in `dup': can't dup NilClass (TypeError)

README.md

Redis stores for ActiveSupport

redis-activesupport provides a cache for ActiveSupport.

For guidelines on using our underlying cache store, see the main redis-store readme.

For information on how to use this library in a Rails app, see the documentation for redis-rails.

If, for some reason, you're using ActiveSupport::Cache and not in a Rails app, read on to learn how to install/use this gem by itself!

Installation

# Gemfile
gem 'redis-activesupport'

Usage

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

ActiveSupport::Cache.lookup_store :redis_store # { ... optional configuration ... }

Running tests

gem install bundler
git clone git://github.com/redis-store/redis-activesupport.git
cd redis-activesupport
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