Permalink
Browse files

Merge pull request #270 from corporealfunk/readme_setup

Updating README
  • Loading branch information...
2 parents 18700e2 + 317b3e8 commit 315e5734156a5f552bf4c010f92924b1b33f7729 @mperham mperham committed Sep 14, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
View
@@ -86,8 +86,15 @@ Here's a more comprehensive example that sets a reasonable default for maximum c
To use Dalli for Rails session storage that times out after 20 minutes, in `config/initializers/session_store.rb`:
+For Rails >= 3.2.4:
+
Rails.application.config.session_store ActionDispatch::Session::CacheStore, :expire_after => 20.minutes
+For Rails 3.x:
+
+ require 'action_dispatch/middleware/session/dalli_store'
+ Rails.application.config.session_store :dalli_store, :memcache_server => ['host1', 'host2'], :namespace => 'sessions', :key => '_foundation_session', :expire_after => 20.minutes
+
Dalli does not support Rails 2.x.

0 comments on commit 315e573

Please sign in to comment.