JezK
Edit File: log_cache_hit-i.ri
U:RDoc::AnyMethod[iI"log_cache_hit:EFI"5UnionStationHooks::RequestReporter#log_cache_hit;FF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"BLogs that something was successfully retrieved 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"?hits 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"K@param [String] name A unique name for this cache hit event. The cache;To:RDoc::Markup::Verbatim; [I"!key is a good value to use. ;T:@format0o; ; [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);T@*FI"RequestReporter;FcRDoc::NormalClass00