Skip to content

Instantly share code, notes, and snippets.

@deepak
Created July 21, 2010 13:03
Show Gist options
  • Save deepak/484443 to your computer and use it in GitHub Desktop.
Save deepak/484443 to your computer and use it in GitHub Desktop.
# using memcache hosted on other-than localhost:11311 - needs better documentation
Rails::Initializer.run do |config|
config.cache_store = :mem_cache_store, '72.14.x.y:11311'
ActionController::Base.session = {
:key => '_foo_session',
:secret => 'secret',
:memcache_server => '72.14.x.y:11311'
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment