Skip to content

Instantly share code, notes, and snippets.

@elight

elight/*.txt

Created Dec 9, 2014
Embed
What would you like to do?
lib/metrics/dashboard.rb:14:9: Rails.cache.fetch("metrics_#{key}_#{interval.to_s}") do
lib/metrics/dashboard.rb:51:9: Rails.cache.write("metrics_#{key}_#{interval.to_s}",data)
lib/metrics/dashboard.rb:56:9: Rails.cache.fetch("#{GROSS_REVENUE_LINE_KEY}-#{period}") do
lib/metrics/dashboard.rb:67:9: Rails.cache.write("#{GROSS_REVENUE_LINE_KEY}-#{period}", data)
lib/metrics/dashboard.rb:73:9: Rails.cache.fetch("#{NET_REVENUE_LINE_KEY}-#{period}") do
lib/metrics/dashboard.rb:91:9: Rails.cache.write("#{NET_REVENUE_LINE_KEY}-#{period}", data)
lib/metrics/dashboard.rb:96:9: Rails.cache.fetch("#{TOTAL_COST_LINE_KEY}-#{period}") do
lib/metrics/dashboard.rb:127:9: Rails.cache.write("#{TOTAL_COST_LINE_KEY}-#{period}", data)
lib/metrics/dashboard.rb:132:9: Rails.cache.fetch("#{CHART_DATA_KEY}-#{interval}") { build_all_chart_data(interval) }.symbolize_keys
lib/metrics/dashboard.rb:136:9: Rails.cache.write("#{CHART_DATA_KEY}-#{interval}", build_all_chart_data(interval))
lib/metrics/dashboard.rb:168:9: Rails.cache.fetch("#{REVENUE_LINE_KEY}-#{interval}-#{lookback}") { net_revenue_line(interval, lookback) }
lib/metrics/dashboard.rb:172:9: Rails.cache.write("#{REVENUE_LINE_KEY}-#{interval}-#{lookback}", net_revenue_line(interval, lookback) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment