aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/cache
diff options
context:
space:
mode:
authorfatkodima <fatkodima123@gmail.com>2018-02-05 18:46:55 +0200
committerJeremy Daer <jeremydaer@gmail.com>2018-02-05 11:57:14 -0800
commit3b5d940fe5868af0f31989054e8fb7d2d9d11ec9 (patch)
tree16b8480ccf884607ccb4bb23d28bbd07a0aa0a7c /activesupport/lib/active_support/cache
parent1dfc3a248ac03b96696927159e5e1a00c8e96ec2 (diff)
downloadrails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.tar.gz
rails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.tar.bz2
rails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.zip
Add missing instrumentation to RedisCacheStore#read_multi
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r--activesupport/lib/active_support/cache/redis_cache_store.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/cache/redis_cache_store.rb b/activesupport/lib/active_support/cache/redis_cache_store.rb
index 596541087f..c21ade8670 100644
--- a/activesupport/lib/active_support/cache/redis_cache_store.rb
+++ b/activesupport/lib/active_support/cache/redis_cache_store.rb
@@ -187,7 +187,11 @@ module ActiveSupport
# fetched values.
def read_multi(*names)
if mget_capable?
- read_multi_mget(*names)
+ instrument(:read_multi, names, options) do |payload|
+ read_multi_mget(*names).tap do |results|
+ payload[:hits] = results.keys
+ end
+ end
else
super
end