class ActionDispatch::Session::MemCacheStore

def initialize(app, options = {})

def initialize(app, options = {})
  require 'memcache'
  # Support old :expires option
  options[:expire_after] ||= options[:expires]
  super
  @default_options = {
    :namespace => 'rack:session',
    :memcache_server => 'localhost:11211'
  }.merge(@default_options)
  @pool = options[:cache] || MemCache.new(@default_options[:memcache_server], @default_options)
  unless @pool.servers.any? { |s| s.alive? }
    raise "#{self} unable to find server during initialization."
  end
  @mutex = Mutex.new
  super
end