diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-21 19:21:46 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-21 19:21:46 -0300 |
commit | d13b4e2fc453468f740eb82224385957e7e87c7b (patch) | |
tree | 79e4df806a553a39cc7768e4b21dd053dadd3da4 /activesupport/lib/active_support/cache | |
parent | dc537669f2241554431f5a767af1ee4fb403fc69 (diff) | |
parent | 15df1dc2b042c28b723ccfde7d66df6875a53d6b (diff) | |
download | rails-d13b4e2fc453468f740eb82224385957e7e87c7b.tar.gz rails-d13b4e2fc453468f740eb82224385957e7e87c7b.tar.bz2 rails-d13b4e2fc453468f740eb82224385957e7e87c7b.zip |
Merge pull request #20251 from davydovanton/doc-memory-store
Add nodoc label for protected Cache methods
Diffstat (limited to 'activesupport/lib/active_support/cache')
-rw-r--r-- | activesupport/lib/active_support/cache/memory_store.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/cache/strategy/local_cache.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/cache/memory_store.rb b/activesupport/lib/active_support/cache/memory_store.rb index 8a0523d0e2..90bb2c38c3 100644 --- a/activesupport/lib/active_support/cache/memory_store.rb +++ b/activesupport/lib/active_support/cache/memory_store.rb @@ -126,7 +126,7 @@ module ActiveSupport PER_ENTRY_OVERHEAD = 240 - def cached_size(key, entry) + def cached_size(key, entry) # :nodoc: key.to_s.bytesize + entry.size + PER_ENTRY_OVERHEAD end diff --git a/activesupport/lib/active_support/cache/strategy/local_cache.rb b/activesupport/lib/active_support/cache/strategy/local_cache.rb index a913736fc3..fe5bc82c30 100644 --- a/activesupport/lib/active_support/cache/strategy/local_cache.rb +++ b/activesupport/lib/active_support/cache/strategy/local_cache.rb @@ -120,7 +120,7 @@ module ActiveSupport super end - def set_cache_value(value, name, amount, options) + def set_cache_value(value, name, amount, options) # :nodoc: if local_cache local_cache.mute do if value |