Created
March 23, 2016 11:32
-
-
Save amitpatelx/f20c44849a450112fc6f to your computer and use it in GitHub Desktop.
Use shared memcached client to share sessions
This file contains hidden or 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. | |
# Configure this in both applications | |
elasticache = Dalli::ElastiCache.new('amit.patel.cfg.usw2.cache.amazonaws.com:11211') | |
config.cache_store = :dalli_store, elasticache.servers |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment