instance method
cached_size
Ruby on Rails 5.2.8.1
Since v4.0.13 PrivateSignature
cached_size(key, entry)
No documentation comment.
Parameters
-
keyreq -
entryreq
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 115
def cached_size(key, entry)
key.to_s.bytesize + entry.size + PER_ENTRY_OVERHEAD
end
Defined in activesupport/lib/active_support/cache/memory_store.rb line 115
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore