Flowdock
method

instrument

Importance_0
Ruby on Rails latest stable (v4.1.8) - 0 notes - Class: ActiveSupport::Cache::Store
instrument(operation, key, options = nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/cache.rb, line 540
        def instrument(operation, key, options = nil)
          log(operation, key, options)

          if self.class.instrument
            payload = { :key => key }
            payload.merge!(options) if options.is_a?(Hash)
            ActiveSupport::Notifications.instrument("cache_#{operation}.active_support", payload){ yield(payload) }
          else
            yield(nil)
          end
        end
Register or log in to add new notes.