Created
July 16, 2014 10:43
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+gem 'dalli' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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