Skip to content

Instantly share code, notes, and snippets.

@mutle
Forked from nileshbetter/gist:545144
Created August 23, 2010 09:40
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 mutle/545145 to your computer and use it in GitHub Desktop.
Save mutle/545145 to your computer and use it in GitHub Desktop.
cache_settings = YAML.load_file("#{BLOG_BASE_PATH}/config/memcached.yml")["defaults"]
config.cache_store = :mem_cache_store, cache_settings['servers'], cache_settings
config.action_controller.session = {
:memcache_server => cache_settings['servers'],
:namespace => "#{Rails.env}:session",
:expire_after => 5.days
}
config.action_controller.session_store = :mem_cache_store
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment