Skip to content

Instantly share code, notes, and snippets.

@kentaro
Created July 4, 2013 09:33
Show Gist options
  • Save kentaro/5926285 to your computer and use it in GitHub Desktop.
Save kentaro/5926285 to your computer and use it in GitHub Desktop.
server = Glint::Server.new do |port|
exec 'memcached', '-p', port.to_s;
exit 0
end
server.start
config.cache_store = :dalli_store, "127.0.0.1:#{server.port}",
{ :namespace => NAME_OF_RAILS_APP, :expires_in => 1.day, :compress => true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment