diff options
author | fatkodima <fatkodima123@gmail.com> | 2018-02-05 18:46:55 +0200 |
---|---|---|
committer | Jeremy Daer <jeremydaer@gmail.com> | 2018-02-05 11:57:14 -0800 |
commit | 3b5d940fe5868af0f31989054e8fb7d2d9d11ec9 (patch) | |
tree | 16b8480ccf884607ccb4bb23d28bbd07a0aa0a7c /activesupport/lib/active_support | |
parent | 1dfc3a248ac03b96696927159e5e1a00c8e96ec2 (diff) | |
download | rails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.tar.gz rails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.tar.bz2 rails-3b5d940fe5868af0f31989054e8fb7d2d9d11ec9.zip |
Add missing instrumentation to RedisCacheStore#read_multi
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/cache/redis_cache_store.rb | 6 |
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 |