Skip to content

Instantly share code, notes, and snippets.

@pacoguzman
Created November 8, 2011 08:56
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 pacoguzman/1347319 to your computer and use it in GitHub Desktop.
Save pacoguzman/1347319 to your computer and use it in GitHub Desktop.
ASPGEMS RAILS BestPractices - Dalli
NAME_OF_RAILS_APP::Application.configure do
config.cache_store = :dalli_store, 'cache-1.example.com', 'cache-2.example.com',
{ :namespace => NAME_OF_RAILS_APP, :expires_in => 1.day, :compress => true }
end
gem 'dalli'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment