README.md in redis-store-1.0.0.beta3 vs README.md in redis-store-1.0.0.beta4

- old
+ new

@@ -27,42 +27,51 @@ db: 13 namespace: theplaylist password: secret If you want to specify the `namespace` optional, you have to pass the `db` param too. -#### __Important__: for now (beta3) `namespace` is only supported for single, non-distributed stores. +#### __Important__: for now (beta4) `namespace` is only supported for single, non-distributed stores. ### Hash { :host => 192.168.1.100, :port => 23682, :db => 13, :namespace => "theplaylist", :password => "secret" } -#### __Important__: for now (beta3) `namespace` is only supported for single, non-distributed stores. +#### __Important__: for now (beta4) `namespace` is only supported for single, non-distributed stores. ## Cache store Provides a cache store for your Ruby web framework of choice. ### Rails 2.x config.gem "redis-store" config.cache_store = :redis_store +### Rails 2.x (with Bundler) + + # Gemfile + gem "redis-store" + + # in your configuration + config.gem "redis-store" + config.cache_store = :redis_store, { ... optional configuration ... } + ### Rails 3.x # Gemfile - gem 'rails', '3.0.0' + gem 'rails', '3.0.3' gem 'redis' - gem 'redis-store', '1.0.0.beta3' + gem 'redis-store', '1.0.0.beta4' # config/environments/production.rb - config.cache_store = :redis_store + config.cache_store = :redis_store, { ... optional configuration ... } For advanced configurations scenarios please visit [the wiki](http://wiki.github.com/jodosha/redis-store/rails). ### Merb - dependency "redis-store", "1.0.0.beta3" + dependency "redis-store", "1.0.0.beta4" dependency("merb-cache", merb_gems_version) do Merb::Cache.setup do register(:redis, Merb::Cache::RedisStore, :servers => ["127.0.0.1:6379"]) end end @@ -90,27 +99,64 @@ use Rack::Session::Redis run Application.new ### Rails 2.x + # config/environment.rb config.gem "redis-store" + + # then configure as following: + + # config/environments/*.rb + config.cache_store = :redis_store + + # or + + # config/initializers/session_store.rb + ActionController::Base.session = { + :key => APPLICATION['session_key'], + :secret => APPLICATION['session_secret'], + :key_prefix => Rails.env + } + ActionController::Base.session_store = :redis_session_store +### Rails 2.x (with Bundler) + + # Gemfile + gem "redis-store" + + # then configure as following: + + # config/environments/*.rb + config.cache_store = :redis_store + + # or + + # config/initializers/session_store.rb + ActionController::Base.session = { + :key => APPLICATION['session_key'], + :secret => APPLICATION['session_secret'], + :key_prefix => Rails.env + } + + ActionController::Base.session_store = :redis_session_store + ### Rails 3.x # Gemfile - gem 'rails', '3.0.0' + gem 'rails', '3.0.3' gem 'redis' - gem 'redis-store', '1.0.0.beta3' + gem 'redis-store', '1.0.0.beta4' # config/initializers/session_store.rb MyApp::Application.config.session_store :redis_session_store For advanced configurations scenarios please visit [the wiki](http://wiki.github.com/jodosha/redis-store/rails). ### Merb - dependency "redis-store", "1.0.0.beta3" + dependency "redis-store", "1.0.0.beta4" Merb::Config.use do |c| c[:session_store] = "redis" end Merb::BootLoader.before_app_loads do Merb::SessionContainer.subclasses << "Merb::RedisSession"