module Rails

  class Cache < ActiveSupport::Cache::MemCacheStore
  end

  def self.cache
    @@cache ||= Cache.new("localhost:#{$memcached_port}")
  end

  class Logger
    def info(string)
    end

    def debug(string)
    end

    def error(string)
    end
  end

  def self.logger
    @logger ||= Logger.new
  end
end

require 'logger'

module Rails

  class Cache < ActiveSupport::Cache::MemCacheStore
  end

  def self.cache
    @@cache ||= Cache.new("localhost:#{$memcached_port}")
  end

  def self.logger
    @logger ||= Logger.new(nil)
  end
end

Simplify by using stdlib's logger
Simplify by using stdlib's logger
