lib/new_relic/agent/instrumentation/memcache/dalli.rb in newrelic_rpm-9.1.0 vs lib/new_relic/agent/instrumentation/memcache/dalli.rb in newrelic_rpm-9.2.0

- old
+ new

@@ -56,10 +56,12 @@ else ::Dalli::Server end.class_eval do include NewRelic::Agent::Instrumentation::Memcache::Tracer - # TODO: Dalli - 3.1.0 renamed send_multiget to pipelined_get, but the method is otherwise the same + # TODO: MAJOR VERSION + # Dalli - 3.1.0 renamed send_multiget to pipelined_get, but the method is otherwise the same + # Once we no longer support Dalli < 3.1.0, remove this conditional logic if Gem::Version.new(::Dalli::VERSION) >= Gem::Version.new('3.1.0') alias_method(:pipelined_get_without_newrelic_trace, :pipelined_get) def pipelined_get(keys) send_multiget_with_newrelic_tracing(keys) { pipelined_get_without_newrelic_trace(keys) } end