Module: NewRelic::Agent::Instrumentation::Memcache::DalliCAS

Extended by:
Dalli, Helper
Defined in:
lib/new_relic/agent/instrumentation/memcache/dalli.rb

Class Method Summary collapse

Methods included from Dalli

instrument_multi_method, instrument_send_multiget, instrument_server_for_key

Methods included from Helper

correctly_encoded, executable_in_path?, instance_method_visibility, instance_methods_include?, run_command, time_to_millis

Class Method Details

.instrument!Object



89
90
91
92
# File 'lib/new_relic/agent/instrumentation/memcache/dalli.rb', line 89

def instrument!
  instrument_methods(::Dalli::Client, dalli_cas_methods)
  instrument_multi_method(:get_multi_cas)
end

.should_instrument?Boolean

Returns:

  • (Boolean)


85
86
87
# File 'lib/new_relic/agent/instrumentation/memcache/dalli.rb', line 85

def should_instrument?
  supported_methods_for(::Dalli::Client, dalli_cas_methods).any?
end