Skip to content

Instantly share code, notes, and snippets.

@stas
Created January 2, 2012 16:45
Show Gist options
  • Save stas/1551336 to your computer and use it in GitHub Desktop.
Save stas/1551336 to your computer and use it in GitHub Desktop.
# Memcache
memcache_options = {
:compression => false,
:username => ENV['MEMCACHE_USERNAME'],
:password => ENV['MEMCACHE_PASSWORD'],
:servers => ENV['MEMCACHE_SERVERS'].split(',')
}
Ramaze::Cache.options.session = Ramaze::Cache::MemCache
Ramaze::Cache.options.settings = Ramaze::Cache::MemCache
Ramaze::Cache.options.view = Ramaze::Cache::MemCache
Ramaze::Cache::MemCache.using( memcache_options )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment