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_read_multi_req, instrument_send_multiget, instrument_server_for_key

Methods included from Helper

correctly_encoded, executable_in_path?, instance_method_visibility, instance_methods_include?, normalize_version, rubygems_specs, run_command, time_to_millis, version_equals?, version_greater_than?, version_less_than?, version_satisfied?

Class Method Details

.instrument!Object



102
103
104
105
# File 'lib/new_relic/agent/instrumentation/memcache/dalli.rb', line 102

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

.should_instrument?Boolean

Returns:

  • (Boolean)


98
99
100
# File 'lib/new_relic/agent/instrumentation/memcache/dalli.rb', line 98

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