Class: Mnemosyne::Probes::Redis::Command::Probe

Inherits:
Mnemosyne::Probe show all
Defined in:
lib/mnemosyne/probes/redis/command.rb

Defined Under Namespace

Modules: ClientPatch

Instance Method Summary collapse

Methods inherited from Mnemosyne::Probe

#install, subscribe, subscriptions

Methods included from Logging

#logger

Instance Method Details

#setupObject



8
9
10
11
12
13
# File 'lib/mnemosyne/probes/redis/command.rb', line 8

def setup
  # Redis v5+ used redis-client, which has it's own probe
  return if Gem::Version.new(::Redis::VERSION) >= Gem::Version.new('5')

  ::Redis::Client.prepend ClientPatch
end