Class: RorVsWild::Plugin::Redis

Inherits:
Object
  • Object
show all
Defined in:
lib/rorvswild/plugin/redis.rb

Defined Under Namespace

Modules: V4, V5

Class Method Summary collapse

Class Method Details

.setup(agent) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/rorvswild/plugin/redis.rb', line 6

def self.setup(agent)
  return if !defined?(::Redis)
  if ::Redis::Client.method_defined?(:process)
    ::Redis::Client.prepend(V4)
  else
    ::Redis.prepend(V5)
  end
end