size()
Returns the size of the cached value. This could be less than value.size if the data is compressed.
# File activesupport/lib/active_support/cache.rb, line 621 def size if @value.nil? 0 else @value.bytesize end end