lib/new_relic/agent/instrumentation/memcache/helper.rb in newrelic_rpm-8.1.0 vs lib/new_relic/agent/instrumentation/memcache/helper.rb in newrelic_rpm-8.2.0
- old
+ new
@@ -5,12 +5,17 @@
module NewRelic::Agent::Instrumentation
module Memcache
module Helper
DATASTORE_INSTANCES_SUPPORTED_VERSION = Gem::Version.new '2.6.4'
+ BINARY_PROTOCOL_SUPPORTED_VERSION = Gem::Version.new '3.0.2'
def supports_datastore_instances?
DATASTORE_INSTANCES_SUPPORTED_VERSION <= Gem::Version.new(::Dalli::VERSION)
+ end
+
+ def supports_binary_protocol?
+ BINARY_PROTOCOL_SUPPORTED_VERSION <= Gem::Version.new(::Dalli::VERSION)
end
def client_methods
[:get, :get_multi, :set, :add, :incr, :decr, :delete, :replace, :append,
:prepend, :cas, :single_get, :multi_get, :single_cas, :multi_cas]