0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
ActiveSupport cache adapter for Redis
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.6
~> 2.14

Runtime

>= 3.0.0
 Project Readme

redis-cache¶ ↑

DESCRIPTION¶ ↑

ActiveSupport cache adapter for Redis.

SYNOPSIS¶ ↑

RUBY EXAMPLE¶ ↑

require "active_support"

cache = ActiveSupport::Cache.lookup_store :redis_store, { :host => "localhost", :port => "6379", :db => 1, :namespace => "test-ns" }
cache.write("abc", "test") # you can use options :expires_in and :raw
cache.read("abc")          # should be "test"

RAILS EXAMPLE¶ ↑

# config/environments/production.rb:
Rails3::Application.configure do
  ...
  config.cache_store = :redis_store, { :host => "localhost", :port => 6379, :db => 1, :namespace => "rails_app" }
  ...
end