def stats
      return "" unless Rails.cache.respond_to? :stats

      stats    = Rails.cache.stats
      values     = stats.select{|k,v| k =~ Regexp.new(host) }.values[0]
      mem_used = to_megabytes values['bytes']
      mem_max  = to_megabytes values['limit_maxbytes']
      return "#{mem_used} / #{mem_max} MB, #{stats.count - 1} peers"
    rescue => e
      raise ConnectionFailed, e
    end
def stats
      return "" unless Rails.cache.respond_to? :stats

      stats    = Rails.cache.stats
      values     = stats.select{|k,v| k =~ Regexp.new(host) }.values[0]
      mem_used = to_megabytes values['bytes']
      mem_max  = to_megabytes values['limit_maxbytes']
      return "#{mem_used} / #{mem_max} MB, #{stats.count - 1} peers"
    rescue => e
      raise ConnectionFailed, e
    end
Public: Outputs stats string for cache