JezK
Edit File: log_cache_miss-i.ri
U:RDoc::AnyMethod[iI"log_cache_miss:EFI"6UnionStationHooks::RequestReporter#log_cache_miss;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I":Logs the failure to retrieve something from a cache. ;TI"IThis can be any cache, be it an in-memory Hash, Redis, Memcached, a ;TI"flat file or whatever.;To:RDoc::Markup::BlankLine o; ; [I"NThere is just one exception. You should not use this method to log cache ;TI"Amisses in the ActiveRecord SQL cache or similar mechanisms. ;TI"IDatabase-related timing should be logged with {#log_database_query}.;T@o; ; [ I"JIf your app is a Rails app, then the `union_station_hooks_rails` gem ;TI"Kautomatically calls this for you every time an `ActiveSupport::Cache` ;TI">`#fetch` or `#read` call success. This includes calls to ;TI"I`Rails.cache.fetch` or `Rails.cache.read`, because `Rails.cache` is ;TI"+an instance of `ActiveSupport::Cache`.;T@o; ; [I"L@param [String] name A unique name for this cache miss event. The cache;To:RDoc::Markup::Verbatim; [I"!key is a good value to use. ;T:@format0o; ; [I"M@param [Numeric] miss_cost_duration The amount of time that was spent in;To;; [I"Jcalculating or processing something, as a result of this cache miss. ;TI"'This time is in **microseconds**. ;T; 0o; ; [I"L@note At present (30 September 2015), logged cache hit/miss information;To;; [I"Gisn't shown in the Union Station interface. We may implement this ;TI" feature in the near future.;T; 0: @fileI"{src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/request_reporter/misc.rb;T:0@omit_headings_from_table_of_contents_below000[ I"%(name, miss_cost_duration = nil);T@1FI"RequestReporter;FcRDoc::NormalClass00