Sha256: 893e10ab708bff9f471eb47bbffa430914507cfb4f3aecc5ecef4bcb144fbd5b
Contents?: true
Size: 665 Bytes
Versions: 3
Compression:
Stored size: 665 Bytes
Contents
# frozen_string_literal: true module Mnemosyne module Probes module Redis module Command class Probe < ::Mnemosyne::Probe 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 module ClientPatch def process(commands) ::Mnemosyne::Support::Redis.instrument(commands, id) { super } end end end end end register 'Redis::Client', 'redis', Redis::Command::Probe.new end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mnemosyne-ruby-2.0.0 | lib/mnemosyne/probes/redis/command.rb |
mnemosyne-ruby-1.17.0 | lib/mnemosyne/probes/redis/command.rb |
mnemosyne-ruby-1.16.0 | lib/mnemosyne/probes/redis/command.rb |