Module: Mnemosyne::Probes::RedisClient::Command::Probe::Instrumentation

Defined in:
lib/mnemosyne/probes/redis-client/command.rb

Instance Method Summary collapse

Instance Method Details

#call(command, redis_config) ⇒ Object



13
14
15
# File 'lib/mnemosyne/probes/redis-client/command.rb', line 13

def call(command, redis_config)
  ::Mnemosyne::Support::Redis.instrument([command], redis_config.server_url) { super }
end

#call_pipelined(commands, redis_config) ⇒ Object



17
18
19
# File 'lib/mnemosyne/probes/redis-client/command.rb', line 17

def call_pipelined(commands, redis_config)
  ::Mnemosyne::Support::Redis.instrument(commands, redis_config.server_url) { super }
end