Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created March 23, 2016 11:32
Show Gist options
  • Save amitpatelx/f20c44849a450112fc6f to your computer and use it in GitHub Desktop.
Save amitpatelx/f20c44849a450112fc6f to your computer and use it in GitHub Desktop.
Use shared memcached client to share sessions
# 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