Sha256: 44024a576919a63ea4586cd6552ac7684c3f4f6586b836ccd93bb554e8ec6e63

Contents?: true

Size: 760 Bytes

Versions: 11

Compression:

Stored size: 760 Bytes

Contents

module PhantomProxy
  module StatusInfo
    def self.boot_up
      @start_time=Time.now
    end
    boot_up
    
    def self.uptime
      Time.now-@start_time
    end
    def self.cache_hit
      @cache_hit||=0
    end
    def self.cache_hit=(obj)
      @cache_hit=obj
    end
    def self.cache_miss
      @cache_miss||=0
    end
    def self.cache_miss=(obj)
      @cache_miss=obj
    end
    def self.cache_error
      @cache_error||=0
    end
    def self.cache_error=(obj)
      @cache_error=obj
    end
    def self.cache_access
      @cache_access||=0
    end
    def self.cache_access=(obj)
      @cache_access=obj
    end
    def self.connections
      @connections||=0
    end
    def self.connections=(obj)
      @connections=obj
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
phantom_proxy-1.4.0 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.12 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.11 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.10 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.9 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.8 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.7 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.6 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.5 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.3 lib/phantom_proxy/helper/status_info.rb
phantom_proxy-1.3.0 lib/phantom_proxy/helper/status_info.rb