February 18, 2009
Posted by roadburn
How to: Install Memcached on Ubuntu for Rails
1 2 3 4 5 6 7 | sudo aptitude install memcached sudo aptitude install libmemcache-dev sudo gem install RubyInline sudo gem install memcache-client |
in application.rb
Uncomment the protect_from_forgery
in environment.rb
1 2 3 4 5 6 7 8 9 | CACHE = MemCache.new 'localhost:11211', :namespace => 'your_app' config.action_controller.session = { :session_key => '_your_app_session', :secret => 'yoursecrectkey', :cache => CACHE, :expires=> 900 } config.action_controller.session_store = :mem_cache_store |
No Comments Yet
You can be the first to comment!
Leave a comment