Class: Redis::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/time_bandits/monkey_patches/redis.rb

Instance Method Summary collapse

Instance Method Details

#logging(commands, &block) ⇒ Object



9
10
11
12
13
# File 'lib/time_bandits/monkey_patches/redis.rb', line 9

def logging(commands, &block)
  ActiveSupport::Notifications.instrument('request.redis', commands: commands) do
    old_logging(commands, &block)
  end
end

#old_loggingObject



7
# File 'lib/time_bandits/monkey_patches/redis.rb', line 7

alias :old_logging :logging