instance method
cached_size
Ruby on Rails 4.0.13
Since v4.0.13Signature
cached_size(key, entry)
No documentation comment.
Parameters
-
keyreq -
entryreq
Source
# File activesupport/lib/active_support/cache/memory_store.rb, line 128
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 128
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Cache::MemoryStore