Skip to content

Instantly share code, notes, and snippets.

@stas
Forked from manveru/gist:1551341
Created January 2, 2012 16:54
Show Gist options
  • Save stas/1551355 to your computer and use it in GitHub Desktop.
Save stas/1551355 to your computer and use it in GitHub Desktop.
# Setup Memcache
['session', 'settings', 'view'].each do |option|
Ramaze::Cache.options.send(
option + '=',
Ramaze::Cache::MemCache.using(
:compression => false,
:username => ENV['MEMCACHE_USERNAME'],
:password => ENV['MEMCACHE_PASSWORD'],
:servers => ENV['MEMCACHE_SERVERS'].split(',')
)
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment