Module: Cacheflow::Redis::ClientNotifications
- Defined in:
- lib/cacheflow/redis.rb
Overview
redis 5 / redis-client
Instance Method Summary collapse
Instance Method Details
#call(command, redis_config) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/cacheflow/redis.rb', line 5 def call(command, redis_config) payload = { commands: [command] } ActiveSupport::Notifications.instrument("query.redis", payload) do super end end |
#call_pipelined(commands, redis_config) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/cacheflow/redis.rb', line 14 def call_pipelined(commands, redis_config) payload = { commands: commands } ActiveSupport::Notifications.instrument("query.redis", payload) do super end end |