Skip to content

Instantly share code, notes, and snippets.

@kazuph
Created July 16, 2014 10:43
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 kazuph/41e1c999f5338ba5bccb to your computer and use it in GitHub Desktop.
Save kazuph/41e1c999f5338ba5bccb to your computer and use it in GitHub Desktop.
Railsのsession storeをAmazon ElastiCache(memcached) へ変更した ref: http://qiita.com/kazuph/items/c87a20d1c49d5ff9b92a
+gem 'dalli'
# Use a different cache store in production.
- # config.cache_store = :mem_cache_store
+ config.cache_store = :dalli_store, 'your_app.hoge.cfg.fuga.cache.amazonaws.com'
# Be sure to restart your server when you modify this file.
-SeniorMode::Application.config.session_store :active_record_store, key: '_your_app_session'
+SeniorMode::Application.config.session_store ActionDispatch::Session::CacheStore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment