Skip to content

Instantly share code, notes, and snippets.

@dLobatog
Created August 28, 2015 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dLobatog/e7887c5aec63592c66ed to your computer and use it in GitHub Desktop.
Save dLobatog/e7887c5aec63592c66ed to your computer and use it in GitHub Desktop.
on config/initializers/session_store.rb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment