Module: Cacheflow::Redis::Notifications

Defined in:
lib/cacheflow/redis.rb

Instance Method Summary collapse

Instance Method Details

#logging(commands) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/cacheflow/redis.rb', line 4

def logging(commands)
  payload = {
    commands: commands
  }
  ActiveSupport::Notifications.instrument("query.redis", payload) do
    super
  end
end