Class: Mnemosyne::Probes::Redis::Command::Probe
- Inherits:
-
Mnemosyne::Probe
- Object
- Mnemosyne::Probe
- Mnemosyne::Probes::Redis::Command::Probe
- Defined in:
- lib/mnemosyne/probes/redis/command.rb
Defined Under Namespace
Modules: ClientPatch, Instrumentation
Instance Method Summary collapse
Methods inherited from Mnemosyne::Probe
#install, subscribe, subscriptions
Methods included from Logging
Instance Method Details
#setup ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/mnemosyne/probes/redis/command.rb', line 8 def setup if Gem::Version.new(::Redis::VERSION) >= Gem::Version.new('5') ::RedisClient.register Instrumentation else ::Redis::Client.prepend ClientPatch end end |