class RailsRequestStats::Stats::CacheStats

Attributes

cache_hit_count_collection[R]
cache_read_count_collection[R]

Public Class Methods

new() click to toggle source
# File lib/rails_request_stats/stats/cache_stats.rb, line 7
def initialize
  @cache_read_count_collection = []
  @cache_hit_count_collection = []
end

Public Instance Methods

add_stats(cache_read_count, cache_hit_count) click to toggle source
# File lib/rails_request_stats/stats/cache_stats.rb, line 12
def add_stats(cache_read_count, cache_hit_count)
  @cache_read_count_collection << cache_read_count
  @cache_hit_count_collection << cache_hit_count
end