Skip to content

Instantly share code, notes, and snippets.

@nateleavitt
Created January 21, 2011 10:26
Show Gist options
  • Save nateleavitt/789509 to your computer and use it in GitHub Desktop.
Save nateleavitt/789509 to your computer and use it in GitHub Desktop.
config
require 'memcached'
memcached_config = YAML.load_file("#{Rails.root}/config/memcached.yml")
SESSION_MEMCACHE_CLIENT = Memcached.new(memcached_config['defaults']['servers'],memcached_config['defaults'])
config.cache_store = :libmemcached_store, memcached_config['defaults']['servers']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment