Sha256: dc0c259811b51127994dd0e607e0e80eeb8de35d588ed0bd231b7f72227bfdd6

Contents?: true

Size: 578 Bytes

Versions: 6

Compression:

Stored size: 578 Bytes

Contents

# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module NewRelic::Agent::Instrumentation::Redis
  class Constants
    PRODUCT_NAME = 'Redis'
    CONNECT = 'connect'
    UNKNOWN = 'unknown'
    LOCALHOST = 'localhost'
    MULTI_OPERATION = 'multi'
    PIPELINE_OPERATION = 'pipeline'
    HAS_REDIS_CLIENT = defined?(::Redis) &&
      Gem::Version.new(::Redis::VERSION) >= Gem::Version.new('5.0.0') &&
      !!defined?(::RedisClient)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
newrelic_rpm-9.0.0 lib/new_relic/agent/instrumentation/redis/constants.rb
newrelic_rpm-8.16.0 lib/new_relic/agent/instrumentation/redis/constants.rb
newrelic_rpm-8.15.0 lib/new_relic/agent/instrumentation/redis/constants.rb
newrelic_rpm-8.14.0 lib/new_relic/agent/instrumentation/redis/constants.rb
newrelic_rpm-8.13.1 lib/new_relic/agent/instrumentation/redis/constants.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/instrumentation/redis/constants.rb